-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
98 lines (88 loc) · 1.89 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
version: '3'
services:
was:
build: .
expose:
- 4000
depends_on:
- mysql
- redis
restart: unless-stopped
networks:
- common-network
environment:
SPRING_CONFIG_LOCATION: file:///etc/additional.yml
volumes:
- type: bind
source: ./src/main/resources/application-prod.yml
target: /etc/additional.yml
nginx:
image: nginx:latest
restart: unless-stopped
ports:
- 8888:8888
volumes:
- ./nginx.prod.conf:/etc/nginx/nginx.conf
depends_on:
- was
networks:
- common-network
mysql:
image: mysql:8.0.33
expose:
- 3306
volumes:
- ./db/mysql/data:/var/lib/mysql
- ./db/mysql/init:/docker-entrypoint-initdb.d
command:
- '--character-set-server=utf8mb4'
- '--collation-server=utf8mb4_unicode_ci'
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
restart: unless-stopped
networks:
- common-network
redis:
image: redis:6.2-alpine
expose:
- 6379
environment:
REDIS_PASSWORD: '${REDIS_PASSWORD}'
command: redis-server /usr/local/etc/redis/redis.conf --save 20 1 --loglevel warning --requirepass $REDIS_PASSWORD
volumes:
- ./db/redis/data:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf
restart: unless-stopped
networks:
- common-network
waiting:
image: tiketeer-waiting
expose:
- 8080
depends_on:
- mysql
- redis
restart: unless-stopped
networks:
- common-network
file:
image: tiketeer-file
expose:
- 4010
restart: unless-stopped
networks:
- common-network
client:
image: tiketeer-fe
expose:
- 80
depends_on:
- was
- waiting
restart: unless-stopped
networks:
- common-network
networks:
common-network:
driver: bridge