-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
72 lines (64 loc) · 1.75 KB
/
docker-compose.dev.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
version: '3.7'
services:
bot:
build:
context: .
dockerfile: ./apps/bot/Dockerfile
ports:
- '2399:2399'
restart: unless-stopped
env_file:
- ./.env.dev
postgres:
build:
context: ./docker/postgres
environment:
POSTGRES_USER: 'admin'
POSTGRES_PASSWORD: 'doctordoctor'
POSTGRES_DB: 'thoth'
volumes:
- postgres-storage:/var/lib/postgresql/data
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- '5432:5432'
restart: unless-stopped
redis:
image: redis:alpine
restart: unless-stopped
ports:
- '6379:6379'
prometheus:
build:
context: ./docker/prometheus
restart: unless-stopped
command: --config.file=/etc/prometheus/prometheus.yml --log.level=debug
ports:
- 9090:9090
volumes:
- prometheus-storage:/prometheus
grafana:
build:
context: ./docker/grafana
restart: unless-stopped
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_USERS_ALLOW_SIGN_UP: 'false'
GF_AUTH_ANONYMOUS_ENABLED: true
ports:
- 3000:3000
volumes:
- grafana-storage:/var/lib/grafana
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
volumes:
prometheus-storage:
grafana-storage:
postgres-storage: