-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.deploy.yml
46 lines (46 loc) · 1.01 KB
/
docker-compose.deploy.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
version: "3"
services:
db:
platform: linux/x86_64
image: mysql:8.0.28
volumes:
- db-data:/var/lib/mysql
- ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf
- ./mysql/initdb:/docker-entrypoint-initdb.d
command: --authentication_policy=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: ryouomoi-checker
MYSQL_PASSWORD: password
MYSQL_DATABASE: ryouomoi-checker-db
server:
build:
context: .
dockerfile: Dockerfile
container_name: ryouomoi-checker-server
env_file:
- .env.compose
depends_on:
- db
chat-server:
build:
context: ./chat
dockerfile: Dockerfile
container_name: ryouomoi-checker-chat-server
env_file:
- .env.compose
depends_on:
- db
nginx:
image: nginx:1.21.6-alpine
ports:
- "8080:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- server
- chat-server
volumes:
db-data:
driver: local