-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.31 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
mysql:
image: mysql
container_name: mysql
ports:
- 3306:3306
environment:
MYSQL_DATABASE: "jetchat"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
etcd:
image: quay.io/coreos/etcd
container_name: etcd
ports:
- 4001:4001
- 2379:2379
- 2380:2380
command:
- --name=etcd0
- --advertise-client-urls=http://127.0.0.1:2379,http://127.0.0.1:4001
- --listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001
- --initial-advertise-peer-urls=http://127.0.0.1:2380
- --listen-peer-urls=http://0.0.0.0:2380
- --initial-cluster-token=etcd-cluster-1
- --initial-cluster=etcd0=http://127.0.0.1:2380
- --initial-cluster-state=new
web:
build: target/docker/stage/
expose:
- 9000
links:
- mysql
- etcd
command:
- -Dapi.GitHub.clientId=875908da66afd5c86463
- -Dapi.GitHub.clientSecret=38a287506600b0c6b59f2777e6ce04b487636549
- -Dslick.dbs.default.db.url=jdbc:mysql://mysql:3306/jetchat
- -Dslick.dbs.default.db.user=root
- -Dslick.dbs.default.db.password=
- -Dplay.evolutions.autoApply=true
- -Dhttp.port=9000
- -Dakka.remote.netty.tcp.port=2500
- -Dapplication.secret=docker
- -DETCDCTL_PEERS=http://etcd:2379,http://etcd:4001
lb:
image: tutum/haproxy
links:
- web
ports:
- "80:80"
environment:
- BACKEND_PORT=9000
- BALANCE=roundrobin