-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
83 lines (83 loc) · 2.33 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3.4"
services:
pg:
container_name: proton_postgres
restart: always
image: postgres
user: ${PROTON_HOST_UID}:${PROTON_HOST_GID}
environment:
- POSTGRES_USER=${PG_USERNAME}
- POSTGRES_PASSWORD=${PG_PASSWORD}
- POSTGRES_DB=${PG_TARGET_DB}
volumes:
- ${PROTON_POSTGRES_VOLUME_MOUNT}:/var/lib/postgresql/data
ports:
- ${PG_TARGET_PORT}:${PG_TARGET_PORT}
redis:
container_name: proton_redis
restart: always
image: redis
user: ${PROTON_HOST_UID}:${PROTON_HOST_GID}
volumes:
- ${PROTON_REDIS_VOLUME_MOUNT}:/data
ports:
- ${REDIS_TARGET_PORT}:${REDIS_TARGET_PORT}
proton:
container_name: proton
restart: always
image: proton_stretch
user: ${PROTON_HOST_UID}:${PROTON_HOST_GID}
ports:
- ${PROTON_TARGET_PORT}:${PROTON_TARGET_PORT}
expose:
- ${PROTON_TARGET_PORT}
volumes:
- .:/PROTON
- ${PROTON_SQLITE_VOLUME_MOUNT}:/PROTON/proton-db
- /etc/group:/etc/group:ro
- /etc/passwd:/etc/passwd:ro
- /etc/shadow:/etc/shadow:ro
tty: true
depends_on:
- pg
- redis
entrypoint: ["./proton.sh"]
prometheus:
image: prom/prometheus
container_name: proton_prometheus
volumes:
- ./prometheus/prometheus.yaml:/etc/prometheus/prometheus.yaml
command: '--config.file=/etc/prometheus/prometheus.yaml'
ports:
- 9090:9090
expose:
- 9090
depends_on:
- proton
cadvisor:
image: google/cadvisor
container_name: proton_cadvisor
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk:/dev/disk/:ro
ports:
- 8080:8080
depends_on:
- prometheus
grafana:
image: grafana/grafana
container_name: proton_grafana
ports:
- 3001:3000
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/provisioning/datasources/all.yaml:/etc/grafana/provisioning/datasources/all.yaml
- ./grafana/provisioning/dashboards/all.yaml:/etc/grafana/provisioning/dashboards/all.yaml
- ./grafana/dashboards/proton-stats.json:/etc/grafana/dashboards/proton-stats.json
- ./grafana/dashboards/container-stats.json:/etc/grafana/dashboards/container-stats.json
depends_on:
- prometheus
- cadvisor