Repository navigation
Expand file tree
/
Copy pathdocker-compose.production-coolify.yml
More file actions
65 lines (60 loc) · 1.8 KB
/
Copy pathdocker-compose.production-coolify.yml
File metadata and controls
65 lines (60 loc) · 1.8 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
db:
image: postgres:17
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${SERVICE_USER_DB}
POSTGRES_PASSWORD: ${SERVICE_PASSWORD_64_DB}
POSTGRES_DB: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${SERVICE_USER_DB}"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
web:
build: .
command: bundle exec rails s -b 0.0.0.0
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
environment:
- DATABASE_URL=${DATABASE_URL:-postgresql://$SERVICE_USER_DB:$SERVICE_PASSWORD_64_DB@db:5432/postgres}
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
- RAILS_ENV=production
- SECRET_KEY_BASE=${SERVICE_BASE64_64_APP}
- AIRTABLE_PERSONAL_ACCESS_TOKEN=${AIRTABLE_PERSONAL_ACCESS_TOKEN:?}
- LOOPS_API_KEY=${LOOPS_API_KEY:?}
- SERVICE_URL_WEB_3000
- APP_FQDN=${SERVICE_FQDN_WEB}
- RAILS_LOG_LEVEL=${RAILS_LOG_LEVEL:-info}
sidekiq:
build: .
command: bundle exec sidekiq -C config/sidekiq.yml
depends_on:
- db
- redis
- web
environment:
- DATABASE_URL=${DATABASE_URL:-postgresql://$SERVICE_USER_DB:$SERVICE_PASSWORD_64_DB@db:5432/postgres}
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
- RAILS_ENV=production
- SECRET_KEY_BASE=${SERVICE_BASE64_64_APP}
- AIRTABLE_PERSONAL_ACCESS_TOKEN=${AIRTABLE_PERSONAL_ACCESS_TOKEN:?}
- LOOPS_API_KEY=${LOOPS_API_KEY:?}
- SIDEKIQ_SCHEDULER=1
- RAILS_LOG_LEVEL=${RAILS_LOG_LEVEL:-info}
volumes:
postgres_data:
redis_data: