forked from ixre/go2o
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
executable file
·50 lines (50 loc) · 1.11 KB
/
docker-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
version: "3"
services:
nats:
image: nats-streaming
restart: always
ports:
- 4222
command: "--dir /data"
volumes:
- ./nats-store:/data
etcd:
image: quay.io/coreos/etcd
restart: always
entrypoint: etcd
command: >
--data-dir=/data --name etcd1
--advertise-client-urls http://etcd:2379
--listen-client-urls http://0.0.0.0:2379
--listen-peer-urls http://0.0.0.0:2380
--initial-cluster-token etcd-cluster-token
--initial-cluster "etcd1=http://etcd:2380"
--initial-cluster-state new
volumes:
- ./etcd-data:/data
ports:
- 2379:2379
postgres:
image: postgres:11.2-alpine
restart: always
ports:
- "15432:5432"
volumes:
- ./postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD:123456
go2o:
image: docker-base.56x.net:5020/go2o
depends_on:
- "postgres"
- "nats"
- "etcd"
restart: always
ports:
- "1427:1427"
- "1428:1428"
volumes:
- ./go2o:/data
environment:
GO2O_NATS_ADDR: nats:4222
GO2O_ETCD_ADDR: etcd:2379