-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 1.68 KB
/
docker-compose.yml
File metadata and controls
73 lines (68 loc) · 1.68 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
65
66
67
68
69
70
71
72
73
name: core
services:
postgres:
image: postgres:16
container_name: core-postgres
restart: unless-stopped
ports:
- "127.0.0.1:5435:5432"
environment:
POSTGRES_USER: core
POSTGRES_PASSWORD: ${CORE_DATABASE_PASSWORD}
POSTGRES_DB: core_production
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- core-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U core"]
interval: 10s
timeout: 5s
retries: 5
web:
image: ghcr.io/rector-labs/core:latest
container_name: core-web
restart: unless-stopped
ports:
- "8000:80"
environment:
RAILS_ENV: production
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
CORE_DATABASE_PASSWORD: ${CORE_DATABASE_PASSWORD}
GITHUB_TOKEN: ${GITHUB_TOKEN}
DB_HOST: postgres
networks:
- core-net
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:80/up"]
interval: 30s
timeout: 10s
retries: 3
solidqueue:
image: ghcr.io/rector-labs/core:latest
container_name: core-solidqueue
restart: unless-stopped
command: ["bundle", "exec", "rake", "solid_queue:start"]
environment:
RAILS_ENV: production
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
CORE_DATABASE_PASSWORD: ${CORE_DATABASE_PASSWORD}
GITHUB_TOKEN: ${GITHUB_TOKEN}
DB_HOST: postgres
networks:
- core-net
depends_on:
postgres:
condition: service_healthy
web:
condition: service_healthy
volumes:
postgres_data:
name: core-postgres-data
networks:
core-net:
driver: bridge
name: core-network