-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
138 lines (128 loc) · 2.8 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
version: '3.2'
services:
nginx:
container_name: nginx
image: nginx:latest
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
env_file:
- .docker.env
networks:
- nginx
- api
- redis
- mariadb
- minio
depends_on:
- api
api:
container_name: api
build:
context: .
target: development
ports:
- 9229:9229
volumes:
- ./build:/app/build
env_file:
- .env
networks:
- api
- redis
- mariadb
- minio
depends_on:
- redis
- mariadb
- minio
# api:
# container_name: api
# build:
# context: .
# target: production
# env_file:
# - .env
# networks:
# - api
# - redis
# - mariadb
# - minio
# depends_on:
# - redis
# - mariadb
# - minio
redis:
container_name: redis
image: redis:latest
volumes:
- redis-data:/data
env_file:
- .docker.env
networks:
- redis
redis-commander:
container_name: redis-commander
image: rediscommander/redis-commander:latest
env_file:
- .docker.env
networks:
- redis
depends_on:
- redis
mariadb:
container_name: mariadb
image: mariadb:latest
volumes:
- mariadb-data:/var/lib/mysql
env_file:
- .docker.env
networks:
- mariadb
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin:latest
env_file:
- .docker.env
networks:
- mariadb
depends_on:
- mariadb
minio:
container_name: minio
image: minio/minio:latest
command: server --console-address ":9001" /data
ports:
- 9000:9000
- 9001:9001
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
mariadb-data:
driver: local
minio-data:
driver: local
networks:
nginx:
driver: bridge
api:
driver: bridge
redis:
driver: bridge
mariadb:
driver: bridge
minio:
driver: bridge