-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (52 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
version: "3.8"
services:
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.37.5
command:
# - --housekeeping_interval=1s
- --docker_only=true
- --allow_dynamic_housekeeping=true
- --disable_metrics=percpu,process,sched,tcp,udp,network
volumes:
- /:/rootfs:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /sys/fs/cgroup:/cgroup:ro
- /dev/disk/:/dev/disk:ro
ports:
- "8080:8080"
prometheus:
image: prom/prometheus:latest
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
mysql:
image: dockerhub.ir/mariadb:latest
environment:
- MARIADB_ROOT_PASSWORD=root
volumes:
- mysql-data:/var/lib/mysql
- ./queries.sql:/queries.sql
- ./employees.sql:/docker-entrypoint-initdb.d/employees.sql
ports:
- "3306:3306"
memcached:
image: dockerhub.ir/memcached:1.6
command: --verbose
deploy:
replicas: 3
# ports:
# - "11211:11211"
redis:
image: dockerhub.ir/redis:6.2
deploy:
replicas: 3
# ports:
# - "6379:6379"
volumes:
mysql-data: