-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (44 loc) · 1.29 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
version: '3'
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
app:
build: ./poster
environment:
- PGUSER=postgres
- PGPASSWORD=postgres
- PGDATABASE=poster
- PGHOST=db
- PGPORT=5432
- DATABASE_URL=ecto://postgres:postgres@db/poster
- SECRET_KEY_BASE=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
depends_on:
- "db"
- "grafana"
ports:
- 4000:4000
prometheus:
image: prom/prometheus:v2.37.0
# For the sake of a smoother project running experience, prometheus will run
# as root to avoid permission errors. This is not recommended and the
# approach would be to use sudo and chown to change the prometheus-data
# permissions on the host side.
user: root
volumes:
- ./prometheus:/etc/prometheus
- ./prometheus-data:/prometheus
command: --config.file=/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana-oss:8.2.0
volumes:
- ./grafana-data:/grafana
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
ports:
- 3000:3000
depends_on:
- "prometheus"
user: '104'