-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.28 KB
/
docker-compose.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
version: "3"
volumes:
prometheus_data: {}
grafana_data: {}
services:
database:
image: "mysql:8.0.21"
environment:
MYSQL_ROOT_PASSWORD: 1234
ports:
- "3306:3306"
volumes:
- ./foo-run/foo-database/scripts.sql:/docker-entrypoint-initdb.d/scripts.sql:ro
cache:
image: "redis"
ports:
- "6379:6379"
envoy:
container_name: envoy-proxy
image: envoyproxy/envoy:v1.15.0
ports:
- 8080:8080
- 9901:9901
volumes:
- ./foo-frontend/envoy.yaml:/etc/envoy/envoy.yaml:ro
network_mode: host
prometheus:
image: prom/prometheus:latest
volumes:
- ./foo-run/foo-monitoring/:/etc/prometheus/
command:
- --config.file=/etc/prometheus/prometheus.yml
ports:
- 9090:9090
network_mode: host
grafana:
image: grafana/grafana:6.3.5
ports:
- 3000:3000
environment:
GF_SECURITY_ADMIN_PASSWORD: secrect
volumes:
- grafana_data:/var/lib/grafana
network_mode: host
# backend:
# depends_on:
# - database
# - cache
# build:
# context: .
# dockerfile: ./foo-run/foo-backend/Dockerfile
# network_mode: host
# frontend:
# build:
# context: .
# dockerfile: ./foo-run/foo-frontend/Dockerfile
# network_mode: host