-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.bak
112 lines (106 loc) · 3.15 KB
/
docker-compose.yml.bak
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
# 请根据docker-compose版本选择2/3
version: "3"
services:
redis-onekey-zk-standalone:
image: redis:latest
restart: always
container_name: redis-onekey-zk-standalone
networks:
- default
environment:
- TZ=Asia/Shanghai
command:
- /bin/bash
- -c
- redis-server /usr/local/bin/redis.conf/redis.conf --requirepass "123456"
privileged: true
ports:
- "0.0.0.0:6380:6379"
volumes:
- ./redis/data:/data
- ./redis/redis.conf:/usr/local/bin/redis.conf/redis.conf
- /etc/localtime:/etc/localtime:ro
custom-zookeeper-onekey-zk-standalone:
container_name: custom-zookeeper-onekey-zk-standalone
build: ./zookeeper
# image: zookeeper:latest
networks:
- default
volumes:
- ./zookeeper/init.data:/init.data
- ./zookeeper/data:/data
- ./zookeeper/logs:/datalog
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
TZ: Asia/Shanghai
SEATA_MYSQL_PORT: ${SEATA_MYSQL_PORT}
HOST_IP: ${HOST_IP}
ports:
- "2181:2181"
restart: on-failure
## use the hostname in project
hostname: custom-zookeeper-onekey-zk-standalone
mysql-for-seata-onekey-zk-standalone:
image: 'mysql/mysql-server:5.7'
restart: always
container_name: mysql-for-seata-onekey-zk-standalone
networks:
- default
environment:
- TZ=Asia/Shanghai
volumes:
- ./mysql-for-seata/data:/var/lib/mysql
- ./mysql-for-seata/config/my.cnf:/etc/my.cnf
- ./mysql-for-seata/config/init.d:/docker-entrypoint-initdb.d
- /etc/localtime:/etc/localtime:ro
ports:
- '3308:3306'
seata-server-onekey-zk-standalone:
# image: seataio/seata-server:1.4.2
build: ./seata
image: onekey_custom/seata-server:1.0
container_name: seata-server-onekey-zk-standalone
networks:
- default
hostname: seata-server
restart: always
ports:
- "8091:8091"
environment:
#宿主机ip
- SEATA_PORT=8091
- STORE_MODE=db
- SEATA_IP=${HOST_IP}
- HOST_IP=${HOST_IP}
- SEATA_WAITING_TIME_FOR_CONFIG_SYNC_TO_ZK=${SEATA_WAITING_TIME_FOR_CONFIG_SYNC_TO_ZK}
- SEATA_CONFIG_NAME=file:/root/seata-config/registry
- TZ=Asia/Shanghai
privileged: true
volumes:
- ./seata/conf:/root/seata-config
- ./libs/mysql-connector-java-8.0.21.jar:/seata-server/libs/mysql-connector-java-8.0.21.jar
- ./seata/logs:/root/logs/seata
- /etc/localtime:/etc/localtime:ro
depends_on:
- mysql-for-seata-onekey-zk-standalone
- custom-zookeeper-onekey-zk-standalone
mysql-for-business-onekey-zk-standalone:
image: 'mysql/mysql-server:5.7'
restart: always
container_name: mysql-for-business-onekey-zk-standalone
environment:
- TZ=Asia/Shanghai
volumes:
- ./mysql-for-business/data:/var/lib/mysql
- ./mysql-for-business/config/my.cnf:/etc/my.cnf
- ./mysql-for-business/config/init.d:/docker-entrypoint-initdb.d
- /etc/localtime:/etc/localtime:ro
ports:
- '3309:3306'
networks:
- default
networks:
default:
external:
name: onekey_zkenv_default