about summary refs log tree commit diff
path: root/README.md
blob: 493c63099ebd318e30df588f17a97186ce162739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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)