-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (99 loc) · 2.84 KB
/
docker-compose.yml
File metadata and controls
104 lines (99 loc) · 2.84 KB
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
version: "3"
services:
redis:
container_name: dcs_redis
build:
context: redis
args:
REDIS_VERSION: ${REDIS_VERSION}
ALPINE_REPOSITORIES: ${ALPINE_REPOSITORIES}
ALPINE_REPOSITORIES_REPLACE: ${ALPINE_REPOSITORIES_REPLACE}
TZ: ${TZ}
ports:
- "${REDIS_HOST_PORT}:6379"
volumes:
- ${CONF_PATH}/redis/conf/redis.conf:/etc/redis.conf:rw
- ${DATA_PATH}/redis:/data:rw
restart: always
stdin_open: true
tty: true
entrypoint: ["redis-server", "/etc/redis.conf"]
networks:
- dcs
mysql8:
container_name: dcs_mysql8
build:
context: mysql8
args:
MYSQL_VERSION: ${MYSQL8_VERSION}
ports:
- "${MYSQL8_HOST_PORT}:3306"
volumes:
- ${CONF_PATH}/mysql8/conf/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:rw
- ${CONF_PATH}/mysql8/init:/docker-entrypoint-initdb.d
- ${DATA_PATH}/mysql8:/var/lib/mysql:rw
- ${LOG_PATH}/mysql8:/var/log/mysql:rw
restart: always
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL8_ROOT_PASSWORD}"
TZ: "${TZ}"
networks:
- dcs
seata-server:
container_name: dcs_seata_server
build:
context: seata
args:
SEATA_VERSION: "${SEATA_VERSION}"
ports:
- "${SEATA_HOST_PORT}:8091"
volumes:
- ${LOG_PATH}/seata:/root/logs/seata
- ${CONF_PATH}/seata/conf:/root/seata-config
environment:
SEATA_PORT: "${SEATA_HOST_PORT}"
STORE_MODE: "${SEATA_STORE_MODE}"
SEATA_CONFIG_NAME: "file:/root/seata-config/registry"
SEATA_IP: "${SEATA_IP}"
depends_on:
nacos-server:
condition: service_healthy
networks:
- dcs
nacos-server:
container_name: dcs_nacos_server
healthcheck:
test: curl localhost:8848/nacos
interval: 10s
timeout: 3s
retries: 3
build:
context: nacos
args:
NACOS_VERSION: "${NACOS_VERSION}"
ports:
- "${NACOS_APPLICATION_PORT}:8848"
- "${NACOS_HOST_PORT_9848}:9848"
- "${NACOS_HOST_PORT_9849}:9849"
volumes:
- ${CONF_PATH}/nacos/conf/application.properties:/home/nacos/conf/application.properties
- ${LOG_PATH}/nacos:/home/nacos/logs
restart: always
environment:
PREFER_HOST_MODE: "${PREFER_HOST_MODE}"
MODE: "${NACOS_MODE}"
NACOS_APPLICATION_PORT: "${NACOS_APPLICATION_PORT}"
SPRING_DATASOURCE_PLATFORM: "${SPRING_DATASOURCE_PLATFORM}"
MYSQL_SERVICE_HOST: "${MYSQL_SERVICE_HOST}"
MYSQL_SERVICE_PORT: "${MYSQL_SERVICE_PORT}"
MYSQL_SERVICE_DB_NAME: "${MYSQL_SERVICE_DB_NAME}"
MYSQL_SERVICE_USER: "${MYSQL_SERVICE_USER}"
MYSQL_SERVICE_PASSWORD: "${MYSQL_SERVICE_PASSWORD}"
MYSQL_DATABASE_NUM: "${MYSQL_DATABASE_NUM}"
MYSQL_SERVICE_DB_PARAM: "${MYSQL_SERVICE_DB_PARAM}"
depends_on:
- mysql8
networks:
- dcs
networks:
dcs: