-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
48 lines (48 loc) · 1.16 KB
/
docker-compose.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
services:
etcd:
image: gcr.io/etcd-development/etcd:v3.5.6
ports:
- 2379:2379
- 2380:2380
hostname: etcd
container_name: etcd
environment:
ETCD_NAME: "etcd"
ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
ETCD_LISTEN_PEER_URLS: "http://0.0.0.0:2380"
ETCD_INITIAL_ADVERTISE_PEER_URLS: "http://0.0.0.0:2380"
ETCD_INITIAL_CLUSTER: "etcd=http://0.0.0.0:2380"
ETCD_INITIAL_CLUSTER_TOKEN: "etcd_cluster"
ETCD_INITIAL_CLUSTER_STATE: "new"
volumes:
- ./data/default.etcd:/default.etcd
networks:
- ects
mysql:
image: mysql:latest
hostname: mysql
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: ects
volumes:
- ./data/mysql:/var/lib/mysql
networks:
- ects
ects:
image: ects:0.5.1
hostname: ects
container_name: ects
command: ects master --etcd etcd:2379
ports:
- 9701:9701
depends_on:
- mysql
- etcd
networks:
- ects
networks:
ects:
name: ects