-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
43 lines (42 loc) · 1.01 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3'
x-app: &app
image: registry.5xruby.com/5xruby/daikichi:latest
restart: always
volumes:
- ./config/application.yml:/src/app/config/application.yml
- ./config/application.yml.env:/src/app/config/application.yml.env
depends_on:
- db
environment:
- DATABASE_URL=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@db/$POSTGRES_DB
- RAILS_SERVE_STATIC_FILES=true
- PORT=80
- WEB_CONCURRENCY=3
- APPLICATION_HOSTNAME
- ERRBIT_HOST=https://errbit.5xruby.dev
- ERRBIT_PROJECT_KEY=35fb9fdf2e5947fead722fcb1abfb7ee
- ERRBIT_ENV=production
- RAILS_MASTER_KEY
- RAILS_MAX_THREADS
- POSTAL_HOST
- POSTAL_KEY
- AUTO_MIGRATION=yes
services:
db:
restart: always
image: postgres:15-alpine
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- ./postgres:/var/lib/postgresql/data
web:
<<: *app
ports:
- 80:80
worker:
<<: *app
command: "good_job"
healthcheck:
test: ["NONE"]