-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
50 lines (45 loc) · 1015 Bytes
/
docker-compose.dev.yml
File metadata and controls
50 lines (45 loc) · 1015 Bytes
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'
services:
webapp:
build:
context: .
dockerfile: Dockerfile
command: [sh, -c, "cd /usr/app && npx prisma db push && npm run start"]
ports:
- 8000:8000
volumes:
- ./:/usr/app
- shared-volume:/usr/app/config
env_file:
- .env
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- 9090:9090
volumes:
- /etc/prometheus:/prometheus
- prometheus-data:/prometheus
- shared-volume:/etc/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--web.enable-lifecycle"
restart: unless-stopped
grafana:
image: grafana/grafana-oss:latest
container_name: grafana
ports:
- 3001:3000
volumes:
- grafana-data:/var/lib/grafana
environment:
- GF_USERS_ALLOW_SIGN_UP=false
restart: unless-stopped
volumes:
shared-volume:
driver: local
prometheus-data:
driver: local
grafana-data:
driver: local