-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.dev.yaml
68 lines (64 loc) · 1.28 KB
/
compose.dev.yaml
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
name: screw-dev
services:
api:
build:
context: ./api
dockerfile: Dockerfile
target: development
environment:
- ENV=dev
- IR_PATH=/app/audio/ir.wav
env_file:
- ./.env
volumes:
- ./api:/app
- data:/app/data
nextjs:
build:
context: ./nextjs
dockerfile: Dockerfile
target: development
env_file:
- ./.env
volumes:
- ./nextjs:/app
- /app/node_modules
- /app/.next
environment:
- NODE_ENV=development
proxy:
build:
context: ./nginx
dockerfile: Dockerfile
env_file:
- ./.env
ports:
- "8080:80"
depends_on:
- api
- nextjs
- grafana
- prometheus
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
restart: always
grafana:
image: grafana/grafana:latest
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_SERVER_ROOT_URL=http://localhost:8080/grafana
- GF_SERVER_SERVE_FROM_SUB_PATH=true
- GF_LOG_LEVEL=warn
- GF_LOG_MODE=console
- GF_METRICS_ENABLED=false
volumes:
data:
grafana_data: