Files
fizzy/config/deploy.production.yml
T
2025-06-17 08:47:03 +01:00

61 lines
1.1 KiB
YAML

servers:
web:
hosts:
- fizzy-app-101
jobs:
hosts:
- fizzy-app-101
web-replica:
hosts:
- fizzy-app-102
proxy: true
proxy:
ssl: false
ssh:
user: app
env:
clear:
RAILS_ENV: production
x-beamer-accessory: &beamer-accessory
image: basecamp/beamer:vfs
registry:
username: bcbot
password:
- BASECAMP_REGISTRY_PASSWORD
options:
user: 1000 # Match the UID of the Rails app, for volume permissions
volumes:
- fizzy:/storage
accessories:
beamer-primary:
<<: *beamer-accessory
service: beamer-primary
cmd: beamer primary --remove-after=1h --dir=/storage --disable-tls
port: 5000:80
roles:
- web
beamer-replica:
<<: *beamer-accessory
service: beamer-replica
cmd: beamer replica --primary=http://fizzy-app-101:5000/ --dir=/storage
roles:
- web-replica
load-balancer:
image: basecamp/kamal-proxy:lb
roles:
- web
options:
publish:
- 80:80
- 443:443
volumes:
- load-balancer:/home/kamal-proxy/.config/kamal-proxy