-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (60 loc) · 1.95 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (60 loc) · 1.95 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
62
63
64
65
66
67
68
69
version: "3.8"
services:
gateway:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
FORGE_JWT_SECRET: "dev-secret-change-me"
FORGE_PORT: "8080"
FORGE_LOG_LEVEL: "info"
volumes:
- ./config:/app/config:ro
depends_on:
- reviews-1
- reviews-2
- skills-1
- skills-2
- chaos-1
networks: [forge]
reviews-1:
build: { context: ., dockerfile: Dockerfile.mock }
environment: { PORT: "3001", SERVICE_NAME: "reviews", INSTANCE_ID: "reviews-1" }
networks: [forge]
reviews-2:
build: { context: ., dockerfile: Dockerfile.mock }
environment: { PORT: "3002", SERVICE_NAME: "reviews", INSTANCE_ID: "reviews-2" }
networks: [forge]
skills-1:
build: { context: ., dockerfile: Dockerfile.mock }
environment: { PORT: "3003", SERVICE_NAME: "skills", INSTANCE_ID: "skills-1" }
networks: [forge]
skills-2:
build: { context: ., dockerfile: Dockerfile.mock }
environment: { PORT: "3004", SERVICE_NAME: "skills", INSTANCE_ID: "skills-2" }
networks: [forge]
chaos-1:
build: { context: ., dockerfile: Dockerfile.mock }
environment: { PORT: "3005", SERVICE_NAME: "chaos", INSTANCE_ID: "chaos-1", BASE_LATENCY_MS: "0" }
networks: [forge]
prometheus:
image: prom/prometheus:latest
ports: ["9090:9090"]
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
networks: [forge]
grafana:
image: grafana/grafana:latest
ports: ["3000:3000"]
environment: { GF_AUTH_ANONYMOUS_ENABLED: "true", GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin" }
volumes:
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml:ro
- ./grafana/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml:ro
- ./grafana/dashboard.json:/var/lib/grafana/dashboards/forge.json:ro
depends_on: [prometheus]
networks: [forge]
networks:
forge:
driver: bridge