-
-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (61 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
63 lines (61 loc) · 1.4 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
name: ects
services:
etcd:
image: gcr.io/etcd-development/etcd:v3.5.19
restart: always
volumes:
- etcd-data:/etcd-data
hostname: etcd
networks:
- ects
environment:
- ETCD_NAME=etcd
- ETCDCTL_API=3
- ETCD_INITIAL_CLUSTER=etcd=http://0.0.0.0:2380
- ETCD_INITIAL_CLUSTER_STATE=new
- ETCD_INITIAL_CLUSTER_TOKEN=etcd_cluster
- ETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_INITIAL_ADVERTISE_PEER_URLS=http://0.0.0.0:2380
container_name: etcd
mysql:
image: mysql:latest
restart: always
volumes:
- mysql-data:/var/lib/mysql
hostname: mysql
networks:
- ects
environment:
MYSQL_ROOT_PASSWORD: ects
container_name: mysql
ects:
image: betterde/ects:latest
ports:
- "0.0.0.0:9701:9701"
build:
args:
- VERSION=${VERSION}
- BUILD_TIME=${BUILD_TIME}
- GIT_COMMIT=${GIT_COMMIT}
- YARN_VERSION=1.22.19-r0
- NODEJS_VERSION=18.20.1-r0
context: .
dockerfile: Dockerfile
command: ects master --etcd etcd:2379
hostname: ects
networks:
- ects
depends_on:
- etcd
- mysql
container_name: ects
networks:
ects:
name: ects
volumes:
etcd-data:
name: etcd-data
mysql-data:
name: mysql-data