Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active February 26, 2022 13:55
Show Gist options
  • Save percybolmer/c3ecd1667f184290bf9315be92598aca to your computer and use it in GitHub Desktop.
Save percybolmer/c3ecd1667f184290bf9315be92598aca to your computer and use it in GitHub Desktop.
Docker-Compose for cadence that we start with
version: '3'
services:
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
- "MYSQL_ROOT_PASSWORD=root"
volumes:
- ./data/mysql/:/var/lib/mysql
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus:/etc/prometheus
- ./data/prometheus/:/prometheus
user: "1000:1000"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- '9090:9090'
cadence:
image: ubercadence/server:0.23.2-auto-setup
ports:
- "8000:8000"
- "8001:8001"
- "8002:8002"
- "8003:8003"
- "7933:7933"
- "7934:7934"
- "7935:7935"
- "7939:7939"
- "7833:7833"
environment:
- "DB=mysql"
- "MYSQL_USER=root"
- "MYSQL_PWD=root"
- "MYSQL_SEEDS=mysql"
- "PROMETHEUS_ENDPOINT_0=0.0.0.0:8000"
- "PROMETHEUS_ENDPOINT_1=0.0.0.0:8001"
- "PROMETHEUS_ENDPOINT_2=0.0.0.0:8002"
- "PROMETHEUS_ENDPOINT_3=0.0.0.0:8003"
- "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml"
depends_on:
- mysql
- prometheus
cadence-web:
image: ubercadence/web:v3.29.4
environment:
- "CADENCE_TCHANNEL_PEERS=cadence:7933"
ports:
- "8088:8088"
depends_on:
- cadence
grafana:
image: grafana/grafana
user: "1000"
depends_on:
- prometheus
ports:
- '3000:3000'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment