-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yaml
51 lines (51 loc) · 1.27 KB
/
docker-compose.yaml
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
version: "2"
networks:
dongtainetwork:
name: dongtainetwork
ipam:
config:
- subnet: 172.31.200.0/24
services:
dongtai-mysql:
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-pdongtai-iast"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
networks:
- dongtainetwork
image: dongtai/dongtai-mysql:latest
restart: always
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
volumes:
- "mysql-vol:/var/lib/mysql:rw"
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-redis:
networks:
- dongtainetwork
image: dongtai/dongtai-redis:latest
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
dongtai-server-update:
networks:
- dongtainetwork
image: registry.cn-hongkong.aliyuncs.com/secnium/dongtai-server:latest
restart: always
entrypoint: ["/bin/bash","/opt/dongtai/deploy/docker/entrypoint.sh", "migrate"]
sysctls:
net.core.somaxconn: 4096
volumes:
- ./mysql/config-tutorial.ini:/opt/dongtai/dongtai_conf/conf/config.ini
logging:
driver: "json-file"
options:
max-size: "10m"