Files
fizzy/config/deploy.staging.yml
T
2025-06-05 11:59:30 +01:00

59 lines
1.0 KiB
YAML

servers:
web:
hosts:
- fizzy-staging-app-01
jobs:
hosts:
- fizzy-staging-app-01
web-replica:
hosts:
- fizzy-staging-app-101
proxy: true
proxy:
ssl: false
ssh:
user: app
env:
clear:
RAILS_ENV: staging
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-staging-app-01:5000/ --dir=/storage
roles:
- web-replica
load-balancer:
image: basecamp/kamal-proxy:lb
roles:
- web
options:
publish:
- 80:80
- 443:443