-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
62 lines (61 loc) · 1.4 KB
/
docker-compose.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.1'
services:
db:
image: postgres:latest
container_name: my-postgres
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
- POSTGRES_DB=kek
ports:
- 5432:5432
hostname: db
# monitoring
influxdb:
image: influxdb
container_name: influxdb
ports:
- "8083:8083"
- "8086:8086"
telegraf:
image: telegraf
links:
- influxdb
volumes:
- ./config/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
volumes:
- ./config/grafana/conf/grafana.ini:/etc/grafana/grafana.ini
- ./config/grafana/provisioning:/etc/grafana/provisioning
links:
- influxdb
kek-server:
image: kek-server-v2/kek-server
build:
context: .
dockerfile: cmd/server/Dockerfile
container_name: kek-server
ports:
- "8080:8080"
volumes:
- ./config/local.yaml:/config/config.yaml
- ./migrations:/config/migrations
command: kek-server --conf /config/config.yaml
restart: always
depends_on:
- "db"
kek-server2:
image: kek-server-v2/kek-server
container_name: kek-server-2
ports:
- "9090:9090"
volumes:
- ./config/local-2.yaml:/config/config.yaml
command: kek-server --conf /config/config.yaml
restart: always
depends_on:
- "db"