-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·44 lines (44 loc) · 1 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
version: "2"
services:
bugs:
build:
context: .
dockerfile: bugs/Dockerfile
restart: always
volumes:
- .:/go/src/github.com/wotmshuaisi/gokitexample
container_name: bugs
ports:
- 8801:8082
notificator:
build:
context: .
dockerfile: notificator/Dockerfile
restart: always
volumes:
- .:/go/src/github.com/wotmshuaisi/gokitexample
container_name: notificator
ports:
- 8800:8085
users:
build:
context: .
dockerfile: users/Dockerfile
restart: always
volumes:
- .:/go/src/github.com/wotmshuaisi/gokitexample
container_name: users
ports:
- 8802:8088
etcd:
image: 'quay.io/coreos/etcd:v3.1.7'
restart: always
ports:
- '23791:2379'
- '23801:2380'
environment:
ETCD_NAME: infra
ETCD_INITIAL_ADVERTISE_PEER_URLS: 'http://etcd:2300'
ETCD_INITIAL_CLUSTER: 'infra=http://etcd:2300'
ETCD_INITIAL_CLUSTER_STATE: new
ETCD_INITIAL_CLUSTER_TOKEN: secrettoken