-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
58 lines (53 loc) · 1.15 KB
/
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
52
53
54
55
56
57
58
version: '3.4'
networks:
todolist:
driver: bridge
services:
todolistgrpc:
image: todolistgrpc
build:
context: .
dockerfile: ./Dockerfile
ports:
- 4000:4000
mysql:
container_name: mysql
image: mysql:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=todolist_grpc
- MYSQL_USER=todolist_grpc
- MYSQL_PASSWORD=todolist_grpc
- TZ=Asia/Shanghai
ports:
- "3306:3306"
networks:
- todolist
etcd:
image: "quay.io/coreos/etcd:v3.5.5"
container_name: etcd
restart: always
privileged: true
ports:
- "2379:2379"
environment:
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_API=3
networks:
- todolist
etcd-keeper:
image: "evildecay/etcdkeeper:latest"
container_name: etcd-keeper
environment:
- ETCD_HOSTS = http://etcd:2379
- SW_STORAGE_ETCD_CLUSTER_NODES = etcd:2379
- HOST = 127.0.0.1
- HOSTNAME = etcd-keeper
links:
- etcd
ports:
- "8080:8080"
networks:
- todolist