-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (45 loc) · 978 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
43
44
45
46
47
48
49
50
version: '3.7'
services:
web:
build: ./app
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./app/:/usr/src/app/
ports:
- 8000:8000
env_file:
- ./.env.dev
depends_on:
- db
db:
image: postgres:12.0-alpine
volumes:
- kronobot_postgres_data_dev:/var/lib/postgresql/data/
env_file:
- ./.env.dev.db
prometheus:
image: prometheus:latest
restart: always
ports:
- 9090:9090
build:
context: prometheus
dockerfile: Dockerfile
grafana:
image: grafana/grafana:8.0.4
restart: always
volumes:
- kronobot_grafana:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
ports:
- 3000:3000
depends_on:
- prometheus
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
kronobot_postgres_data_dev:
external: true
kronobot_grafana:
external: true