-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathdocker-compose.yml
120 lines (118 loc) · 2.59 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
services:
django-app:
image: django-app:latest
build:
context: .
dockerfile: ./django_app/Dockerfile
depends_on:
db:
condition: service_healthy
minio:
condition: service_healthy
networks:
- redbox-app-network
env_file:
- path: tests/.env.integration
required: false
- path: .env
required: false
volumes:
- /app/django_app/frontend/node_modules
- ./django_app:/app/django_app/
ports:
- "8090:8090"
healthcheck:
test: curl --fail http://localhost:8090/health/ || exit 1
interval: 5s
timeout: 30s
retries: 24
start_period: 60s
lit-ssr:
image: lit-ssr:latest
build:
context: .
dockerfile: ./lit_ssr/Dockerfile
user: "node"
networks:
- redbox-app-network
ports:
- "3002:3002"
restart: unless-stopped
env_file:
- path: .env
required: false
db:
image: postgres:13
env_file:
- path: tests/.env.integration
required: false
- path: .env
required: false
volumes:
- local_postgres_data:/var/lib/postgresql/data:Z
networks:
- redbox-app-network
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-U", "redbox-core", "-d", "db_prod" ]
interval: 5s
timeout: 30s
retries: 24
start_period: 30s
requirements:
image: python:3.12
profiles:
- utils
volumes:
- ./:/app/:z
worker:
image: redbox-worker:latest
build:
context: .
dockerfile: django_app/Dockerfile
command: "venv/bin/django-admin qcluster"
env_file:
- path: tests/.env.integration
required: false
- path: .env
required: false
depends_on:
minio:
condition: service_healthy
django-app:
condition: service_healthy
db:
condition: service_healthy
networks:
- redbox-app-network
restart: unless-stopped
minio:
image: minio/minio
expose:
- "9000"
- "9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
command: server --console-address ":9001" /data
networks:
- redbox-app-network
volumes:
- ./data/objectstore:/data
restart: unless-stopped
healthcheck:
test: [ "CMD", "mc", "ready", "local" ]
interval: 5s
timeout: 30s
retries: 24
start_period: 30s
networks:
redbox-app-network:
driver: bridge
volumes:
redbox-app-data:
local_postgres_data: {}