-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
47 lines (46 loc) · 1.06 KB
/
docker-compose.prod.yml
File metadata and controls
47 lines (46 loc) · 1.06 KB
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
44
45
46
47
services:
web:
build: .
ports:
- "${PORT:-4000}:3000"
environment:
- RAILS_ENV=production
- RAILS_MASTER_KEY
- DATABASE_URL
- HOST
- RAILS_LOG_LEVEL
- RAILS_MAX_THREADS
- GOOD_JOB_EXECUTION_MODE=external
- SMTP_USER_NAME
- SMTP_PASSWORD
- SMTP_ADDRESS
- GEMINI_API_KEY
- APPSIGNAL_PUSH_API_KEY
- CLAUDE_CODE_OAUTH_TOKEN
depends_on:
worker:
condition: service_started
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/up"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
worker:
build: .
command: bundle exec good_job start
environment:
- RAILS_ENV=production
- RAILS_MASTER_KEY
- DATABASE_URL
- HOST
- RAILS_LOG_LEVEL
- GOOD_JOB_EXECUTION_MODE=external
- SMTP_USER_NAME
- SMTP_PASSWORD
- SMTP_ADDRESS
- GEMINI_API_KEY
- APPSIGNAL_PUSH_API_KEY
- CLAUDE_CODE_OAUTH_TOKEN
restart: unless-stopped