Skip to content

Instantly share code, notes, and snippets.

@goofansu
Last active October 31, 2025 11:05
Show Gist options
  • Select an option

  • Save goofansu/c1f6d806f23cca16d582709cf2fed05e to your computer and use it in GitHub Desktop.

Select an option

Save goofansu/c1f6d806f23cca16d582709cf2fed05e to your computer and use it in GitHub Desktop.
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
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