diff --git a/docker-compose.yml b/docker-compose.yml index a5a3080a2..c6ba15c3a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: - "4001" volumes: - ./etcd.data:/data - command: -name=dcron1 + command: -name=dkron1 consul: image: consul @@ -18,11 +18,20 @@ 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: . @@ -30,6 +39,9 @@ services: - ./:/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"