Skip to content

Instantly share code, notes, and snippets.

@beradrian
Last active May 25, 2017 13:38
Show Gist options
  • Save beradrian/66a0990a0c2886f4727c52af8bfe8beb to your computer and use it in GitHub Desktop.
Save beradrian/66a0990a0c2886f4727c52af8bfe8beb to your computer and use it in GitHub Desktop.
docker-compose.yml samples
version: '3'
services:
zk1:
image: zookeeper
restart: always
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zk1:2888:3888
# zk2:
# image: zookeeper
# restart: always
# ports:
# - "2182:2181"
# environment:
# ZOO_MY_ID: 2
# ZOO_SERVERS: server.1=zk1:2888:3888 server.2=zk2:2888:3888
chronos:
image: mesosphere/chronos:chronos-2.4.0-0.1.20151007110204.ubuntu1404-mesos-0.24.1-0.2.35.ubuntu1404
command: /usr/bin/chronos run_jar --http_port 4400 --master zk://zk1:2181/mesos --zk_hosts zk://zk1:2181/mesos
ports:
- "4400:4400"
depends_on:
- zk1
version: '3'
services:
etcd:
image: elcolio/etcd:latest
restart: always
ports:
- "2379:2379"
- "2380:2380"
- "4001:4001"
- "7001:7001"
environment:
CLIENT_URLS: http://etcd:2379
PEER_URLS: http://etcd:2380
volumes:
- configdata:/data
# zk1:
# image: zookeeper
# restart: always
# ports:
# - "2181:2181"
# environment:
# ZOO_MY_ID: 1
# ZOO_SERVERS: server.1=zk1:2888:3888
dkron:
image: dkron/dkron
ports:
- "8080:8080"
- "8946:8946"
command: agent -server -backend-machine=etcd:2379 -log-level=debug
# command: agent -server -backend=zk -backend-machine=zk1:2181 -log-level=debug
depends_on:
- etcd
# - zk1
volumes:
configdata:
#Install SSH client
# ... on Alpine Linux
RUN sudo apk --update add openssh-client
# ... on CentOS
RUN sudo yum -y install openssh-clients
# ... on Ubuntu
RUN sudo apt-get update && apt-get install -y openssh-client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment