-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
78 lines (72 loc) · 1.77 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.8'
services:
db:
image: timescale/timescaledb:2.5.0-pg14
restart: always
volumes:
- 'db_data:/var/lib/postgresql/data'
ports:
- "5432:5432"
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
web:
build: .
ports:
- 9568:9568
- 9569:9569
depends_on:
- db
env_file:
- .env
environment:
- "${MIX_ENV:-prod}"
- HTTP_PORT
- RUBE_HOST
- SLURPEE_HOST
- RUBE_SECRET_KEY_BASE
- RUBE_LIVE_VIEW_SIGNING_SALT
- SLURPEE_SECRET_KEY_BASE
- SLURPEE_LIVE_VIEW_SIGNING_SALT
- DATABASE_URL
prometheus:
image: 'prom/prometheus:v2.31.1'
restart: always
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
grafana:
image: 'grafana/grafana:8.2.5'
restart: always
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- ./grafana/config.monitoring
reverse_proxy:
build:
context: .
dockerfile: ./reverse_proxy/Dockerfile
ports:
- 80:80
volumes:
- ./reverse_proxy/templates:/etc/nginx/templates
- ./reverse_proxy/nginx.htpasswd:/etc/nginx/conf.d/nginx.htpasswd
environment:
- HTTP_PORT
- RUBE_HOST
- SLURPEE_HOST
- GRAFANA_HOST
- PROMETHEUS_HOST
volumes:
db_data:
web_build:
prometheus_data:
grafana_data: