-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
64 lines (62 loc) · 1.35 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.7"
services:
etcd:
image: gcr.io/etcd-development/etcd:v3.5.0
container_name: etcd
entrypoint: /usr/local/bin/etcd
command: -name s1 -data-dir /etcd-data -listen-client-urls http://0.0.0.0:2379 -advertise-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-advertise-peer-urls http://0.0.0.0:2380 -initial-cluster s1=http://0.0.0.0:2380
ports:
- "2379:2379"
- "2380:2380"
pink:
build: .
container_name: pink
ports:
- "8001:8001"
links:
- etcd
- mysql
depends_on:
- etcd
- mysql
console:
build:
context: ./static/
dockerfile: Dockerfile
container_name: pink-console
ports:
- "8002:8002"
links:
- pink
depends_on:
- pink
user:
build:
context: ./example/pink-user/
dockerfile: Dockerfile
container_name: pink-user
links:
- etcd
depends_on:
- pink
- etcd
trade:
build:
context: ./example/pink-trade/
dockerfile: Dockerfile
container_name: pink-trade
links:
- etcd
depends_on:
- pink
- etcd
mysql:
image: mysql:5.7
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: 123456
volumes:
- /var/lib/mysql
- ./db/init/:/docker-entrypoint-initdb.d
ports:
- "3306:3306"