Skip to content

Instantly share code, notes, and snippets.

@tiagoad
Created May 21, 2020 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagoad/8756dd69e4390642f6d02ad236c77599 to your computer and use it in GitHub Desktop.
Save tiagoad/8756dd69e4390642f6d02ad236c77599 to your computer and use it in GitHub Desktop.
Uber Cadence on Docker Swarm + mySQL
version: '3.5'
networks:
# for use by containers in other docker-compose files to connect to cadence
cadence:
# telegraf network (set up in another docker-compose file, you can replace with your own logging solution)
monitoring_monitoring:
external: true
services:
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: "${CADENCE_MYSQL_PASSWORD}"
cadence:
image: ubercadence/server:0.11.0-auto-setup
# this should be commented out, and the "cadence"
# overlay network used for communication with cadence
ports:
- 7933:7933 # frontend
- 7934:7934 # history
- 7935:7935 # matching
- 7939:7939 # worker
networks:
- cadence
- default
- monitoring_monitoring
environment:
DB: mysql
MYSQL_USER: root
MYSQL_PWD: "${CADENCE_MYSQL_PASSWORD}"
MYSQL_SEEDS: mysql
STATSD_ENDPOINT: "monitoring_telegraf:8125"
DYNAMIC_CONFIG_FILE_PATH: config/dynamicconfig/development.yaml
BIND_ON_IP: "0.0.0.0"
HOST_IP: "127.0.0.1"
RINGPOP_BOOTSTRAP_MODE: "dns"
RINGPOP_SEEDS: "cadence:7933,cadence:7934,cadence:7935,cadence:7939"
cadence-web:
image: ubercadence/web:3.9.0
networks:
- default
- http
environment:
CADENCE_TCHANNEL_PEERS: "cadence:7933"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment