-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose-nomao.yml
More file actions
44 lines (44 loc) · 1.46 KB
/
docker-compose-nomao.yml
File metadata and controls
44 lines (44 loc) · 1.46 KB
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: "3"
services:
# The jobstore for scheduling crawlers and etcd listeners
db:
restart: always
image: "postgres"
environment:
- POSTGRES_USER=scheduler
- POSTGRES_PASSWORD=password
- POSTGRES_DB=schedule
ports:
- "54320:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
network_mode: "host"
# The etcd node
etcd:
restart: always
image: quay.io/coreos/etcd
environment:
- ALLOW_NONE_AUTHENTICATION=yes
# The name this node will be added to the cluster with
- ETCD_NAME=etcd
# Make sure this matches the volume
- DATA-DIR=/etcd-data
# Endpoint the peers in the cluster will use to talk to this node
- ETCD_INITIAL_ADVERTISE_PEER_URLS=http://127.0.0.1:2380
# Endpoint this node is listening at for peer requests
- ETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380
# Endpoint this node is listening at for client requests
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
# Endpoint clients can use to talk to this node
- ETCD_ADVERTISE_CLIENT_URLS=http://127.0.0.1:2379
# The settings below need to be retrieved from an existing node
# to join an existing cluster
#- ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster
- ETCD_INITIAL_CLUSTER=etcd=http://127.0.0.1:2380
- ETCD_INITIAL_CLUSTER_STATE=new
ports:
- "2379:2379"
- "2380:2380"
volumes:
- ./etcd-data:/etcd-data
network_mode: "host"