-
-
Save goofansu/c1f6d806f23cca16d582709cf2fed05e to your computer and use it in GitHub Desktop.
Referenced in https://yejun.dev/devlog/kamal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| servers: | |
| web: | |
| - brightu-cn-prod-app | |
| job: | |
| hosts: | |
| - brightu-cn-prod-app | |
| proxy: | |
| host: <cn-domain> | |
| registry: | |
| server: localhost:5555 | |
| env: | |
| clear: | |
| REGION: CN | |
| builder: | |
| local: true | |
| ssh: | |
| user: ubuntu | |
| accessories: | |
| db: | |
| image: <aws-ecr-domain>/pgvector/pgvector:pg17 | |
| host: brightu-cn-prod-app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| service: brightu | |
| image: goofansu/brightu | |
| servers: | |
| web: | |
| - brightu-eu-prod-app | |
| job: | |
| hosts: | |
| - brightu-eu-prod-app | |
| cmd: bin/jobs | |
| proxy: | |
| ssl: true | |
| host: <eu-domain> | |
| forward_headers: true | |
| registry: | |
| username: goofansu | |
| password: | |
| - KAMAL_REGISTRY_PASSWORD | |
| env: | |
| secret: | |
| - RAILS_MASTER_KEY | |
| - POSTGRES_PASSWORD | |
| clear: | |
| JOB_CONCURRENCY: 4 | |
| WEB_CONCURRENCY: 2 | |
| DB_HOST: brightu-db | |
| aliases: | |
| console: app exec --interactive --reuse "bin/rails console" | |
| shell: app exec --interactive --reuse "bash" | |
| logs: app logs -f | |
| dbc: app exec --interactive --reuse "bin/rails dbconsole" | |
| volumes: | |
| - "brightu_storage:/rails/storage" | |
| asset_path: /rails/public/assets | |
| builder: | |
| arch: amd64 | |
| remote: ssh://root@docker-builder | |
| local: false | |
| ssh: | |
| user: root | |
| accessories: | |
| db: | |
| image: pgvector/pgvector:pg17 | |
| host: brightu-eu-prod-app | |
| port: "127.0.0.1:5432:5432" | |
| env: | |
| clear: | |
| POSTGRES_DB: brightu_production | |
| POSTGRES_USER: brightu | |
| secret: | |
| - POSTGRES_PASSWORD | |
| directories: | |
| - data:/var/lib/postgresql/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment