-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
42 lines (38 loc) · 996 Bytes
/
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
version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_PASSWORD=123
volumes:
- ./migrations/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./postgres-data:/var/lib/postgresql/data
- ./postgresql_setting4.conf:/etc/postgresql.conf
command: postgres -c config_file=/etc/postgresql.conf
app:
build: .
container_name: meal_planner
depends_on:
- db
ports:
- "8888:8888"
prometheus:
image: prom/prometheus
volumes:
- ./instrumentation/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '-config.file=/etc/prometheus/prometheus.yml'
ports:
- "9090:9090"
node-exporter:
image: prom/node-exporter:0.12.0rc1
ports:
- '9100:9100'
grafana:
image: grafana/grafana:3.0.0-beta7
environment:
- GF_SECURITY_ADMIN_PASSWORD=pass
depends_on:
- prometheus
ports:
- "3000:3000"