# circus-compose docker-compose that can be used to start a circus (note: a digital one...) ## Setup Execute the `setup.sh` file, it will ask you to configure some stuff. You can also setup the circus manually, read on for more infos: ### Networking ``` $ docket network create circus $ docket network create circus_db ``` Set the `HOSTNAME` environment variable in the `.env` file to the host you want to host the ctf on, for example: ``` HOSTNAME=docker.localhost ``` ### Grafana Define Grafana foo in `grafana.env`: ``` GF_SERVER_ROOT_URL=http://grafana.docker.localhost:3000 GF_SECURITY_ADMIN_PASSWORD=secret ``` When setting up Grafana, you can create a Prometheus data source using prometheus located at `http://prometheus:9090`. ### Opening the circus start the stack: ``` $ docker-compose up -d ``` Services: - [http://traefik.docker.localhost](http://traefik.docker.localhost) - [http://register.docker.localhost](http://register.docker.localhost) - [http://manager.docker.localhost](http://manager.docker.localhost) - [http://scoreboard.docker.localhost/metrics](http://scoreboard.docker.localhost/metrics) - [http://prometheus.docker.localhost](http://prometheus.docker.localhost) - [http://grafana.docker.localhost](http://grafana.docker.localhost)