Skip to content

Commit

Permalink
Allow dev with zookeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Sep 23, 2016
1 parent 7c08fbe commit 551a821
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- "4001"
volumes:
- ./etcd.data:/data
command: -name=dcron1
command: -name=dkron1

consul:
image: consul
Expand All @@ -18,18 +18,30 @@ services:
hostname: node1
command: agent -server -bootstrap -ui-dir=/ui -client=0.0.0.0

zk:
image: zookeeper
ports:
- "2181"
hostname: node1

dkron:
depends_on:
- consul
# Uncomment to use consul
#- consul
# Uncommend to use etcd
#- etcd
# Uncommend to use zk
- zk
ports:
- "8080"
build: .
volumes:
- ./:/gopath/src/github.com/victorcoder/dkron
environment:
- GODEBUG=netdns=go
# Uncomment to use consul
command: bash -c "go build *.go && ./main agent -server -backend=consul -backend-machine=consul:8500 -join=dkron:8946 -log-level=debug"
# Uncomment to use etcd
#command: bash -c "go build *.go && ./main agent -server -backend=etcd -backend-machine=etcd:4001 -join=dkron_seed:8946 -log-level=debug"
# command: bash -c "go build *.go && ./main agent -server -backend=etcd -backend-machine=etcd:4001 -join=dkron:8946 -log-level=debug"
# Uncomment to use zk
# command: bash -c "go build *.go && ./main agent -server -backend=zk -backend-machine=zk:2181 -join=dkron:8946 -log-level=debug"

0 comments on commit 551a821

Please sign in to comment.