-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.24 KB
/
docker-compose.yml
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
version: '3'
services:
nexus-mods-stats:
build: .
image: alov/nexus-mods-stats
container_name: stats_exporter
restart: always
depends_on:
- timescaledb
# - prometheus
volumes:
- ./config.toml:/nm-stats/config.toml
# for prometheus
# expose:
# - 8000
command: python ./timescaledb_exporter.py
# command: python ./prometheus_exporter.py
timescaledb:
image: timescale/timescaledb:latest-pg9.6
container_name: stats_timescaledb
restart: always
volumes:
- ./data/psql:/var/lib/postgresql/data
expose:
- 5432
environment:
# set this password!!
POSTGRES_PASSWORD: password
# prometheus:
# image: prom/prometheus:latest
# container_name: stats_prometheus
# restart: always
# expose:
# - "9090"
# volumes:
# - ./documentation/prometheus.yml:/etc/prometheus/prometheus.yml
# - ./data/prometheus:/prometheus
# command:
# - '--config.file=/etc/prometheus/prometheus.yml'
grafana:
image: grafana/grafana
container_name: stats_grafana
restart: always
depends_on:
- timescaledb
# - prometheus
user: root
volumes:
- ./data/grafana:/var/lib/grafana
ports:
- 3000:3000