-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
119 lines (110 loc) · 2.42 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
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
version: '3.7'
services:
nginx:
container_name: nginx
image: nginx:latest
ports:
- 80:80
- 6006:6006
volumes:
- ./nginx.prod.conf:/etc/nginx/nginx.conf
env_file:
- .docker.env
networks:
- client
- storybook
- api
depends_on:
- client
- storybook
- api
client:
container_name: client
build:
dockerfile: ./apps/client/Dockerfile
context: .
env_file:
- ./apps/client/.env
networks:
- client
depends_on:
- api
storybook:
container_name: storybook
build:
dockerfile: ./packages/ui/Dockerfile
context: .
networks:
- storybook
api:
container_name: api
build:
dockerfile: ./apps/api/Dockerfile
context: .
env_file:
- ./apps/api/.env
networks:
- api
- redis
- postgres
- minio
depends_on:
- redis
- postgres
- minio
redis:
container_name: redis
image: redis:latest
volumes:
- redis-data:/data
env_file:
- .docker.env
networks:
- redis
postgres:
container_name: postgres
image: postgres:latest
volumes:
- postgres-data:/var/lib/postgresql/data
env_file:
- .docker.env
networks:
- postgres
minio:
container_name: minio
image: minio/minio:latest
command: server /data
ports:
- 9000:9000
volumes:
- minio-data:/data
env_file:
- .docker.env
networks:
- minio
healthcheck:
test:
['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
interval: 30s
timeout: 20s
retries: 3
volumes:
redis-data:
driver: local
postgres-data:
driver: local
minio-data:
driver: local
networks:
client:
driver: bridge
storybook:
driver: bridge
api:
driver: bridge
redis:
driver: bridge
postgres:
driver: bridge
minio:
driver: bridge