-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
61 lines (59 loc) · 1.35 KB
/
docker-compose.dev.yaml
File metadata and controls
61 lines (59 loc) · 1.35 KB
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
volumes:
dosasm_db_data:
dosasm_prometheus:
dosasm_grafana:
networks:
dosasm_net:
name: dosasm_net
services:
postgres:
image: "postgres:14-alpine"
restart: always
ports:
- "5444:5432"
env_file:
- ".env_dev"
volumes:
- ./docker-assets/postgresql/import:/tmp/import:ro
- type: volume
source: dosasm_db_data
target: /var/lib/postgresql/data
logging:
driver: "json-file"
options:
max-file: "3"
max-size: "50m"
networks:
- dosasm_net
prometheus:
image: "prom/prometheus"
restart: always
volumes:
- ./docker-assets/dev/prometheus:/etc/prometheus # main service only (fcache ignored in dev environment)
- type: volume
source: dosasm_prometheus
target: /prometheus
logging:
driver: "json-file"
options:
max-file: "3"
max-size: "50m"
networks:
- dosasm_net
grafana:
hostname: dosasm-grafana # there can be multiple grafanas and nginx must be able to distinguish them
image: "grafana/grafana-oss"
restart: always
volumes:
- type: volume
source: dosasm_grafana
target: /var/lib/grafana
logging:
driver: "json-file"
options:
max-file: "3"
max-size: "50m"
depends_on:
- prometheus
networks:
- dosasm_net