forked from distribworks/dkron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 1.15 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
---
version: '2'
services:
# Uncomment to use etcd
etcd:
image: quay.io/coreos/etcd
ports:
- "2379"
volumes:
- ./etcd.data:/data
command: etcd -name=dkron1 -advertise-client-urls http://etcd:2379 -listen-client-urls http://0.0.0.0:2379
consul:
image: consul
ports:
- "8500:8500"
- "8300"
hostname: node1
command: agent -server -bootstrap -client=0.0.0.0
zk:
image: zookeeper
ports:
- "2181"
hostname: node1
dkron:
build: .
depends_on:
- consul
- etcd
- zk
ports:
- "8080"
- "8946"
volumes:
- ./:/gopath/src/github.com/victorcoder/dkron
environment:
- GODEBUG=netdns=go
# Uncomment to use consul
command: scripts/entrypoint.sh agent -server -backend=consul -backend-machine=consul:8500 -join=dkron:8946 -log-level=debug
# Uncomment to use etcd
# command: scripts/entrypoint.sh agent -server -backend=etcd -backend-machine=etcd:2379 -join=dkron:8946 -log-level=debug
# Uncomment to use zk
# command: scripts/entrypoint.sh agent -server -backend=zk -backend-machine=zk:2181 -join=dkron:8946 -log-level=debug