-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
94 lines (92 loc) · 1.77 KB
/
docker-compose.prod.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
services:
api:
dns:
- 8.8.8.8
- 8.8.4.4
build:
context: .
dockerfile: api.dockerfile
networks:
- addons
environment:
- CONTAINER_MODE=http
- WITH_HORIZON=true
- WITH_SCHEDULER=true
env_file:
- .env
ports:
- "8000:8000"
depends_on:
- pgsql
- redis
pgsql:
image: postgres:16
restart: unless-stopped
volumes:
- pgsql-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_DB: '${DB_DATABASE}'
POSTGRES_USER: '${DB_USERNAME}'
POSTGRES_PASSWORD: '${DB_PASSWORD}'
PGPASSWORD: '${DB_PASSWORD}'
networks:
- addons
healthcheck:
test:
- CMD
- pg_isready
- '-q'
- '-d'
- '${DB_DATABASE}'
- '-U'
- '${DB_USERNAME}'
retries: 3
timeout: 5s
redis:
image: redis:alpine
restart: unless-stopped
networks:
- addons
volumes:
- redis-data:/data
ports:
- "6379:6379"
healthcheck:
test:
- CMD
- redis-cli
- ping
retries: 3
timeout: 5s
minio:
image: 'minio/minio:latest'
ports:
- "9000:9000"
- "8900:8900"
environment:
MINIO_ROOT_USER: '${PUBLIC_AWS_ACCESS_KEY_ID}'
MINIO_ROOT_PASSWORD: '${PUBLIC_AWS_SECRET_ACCESS_KEY}'
volumes:
- 'minio-data:/data/minio'
networks:
- addons
command: 'minio server /data/minio --console-address ":8900"'
healthcheck:
test:
- CMD
- curl
- '-f'
- 'http://localhost:9000/minio/health/live'
retries: 3
timeout: 5s
volumes:
storage:
minio-data:
pgsql-data:
redis-data:
networks:
addons:
name: addons
external: true