c3a9ac7391
and move secrets into Rails credentials for both beta and production environments.
59 lines
1011 B
YAML
59 lines
1011 B
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
|
|
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
|