-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (92 loc) · 2.15 KB
/
docker-compose.yml
File metadata and controls
99 lines (92 loc) · 2.15 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.9"
services:
redis:
container_name: redis-container
image: redis:latest
ports:
- "6379:6379"
networks:
- app-network
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "redis-cli -a ${REDIS_PASSWORD} ping | grep PONG"]
interval: 5s
timeout: 3s
retries: 10
redis-exporter:
container_name: redis-exporter-container
image: oliver006/redis_exporter:latest
ports:
- "9121:9121"
networks:
- app-network
env_file:
- .env
environment:
REDIS_ADDR: "redis://:${REDIS_PASSWORD}@redis:6379"
depends_on:
redis:
condition: service_healthy
rabbitmq:
container_name: rabbitmq-container
image: rabbitmq:3-management-alpine
ports:
- "5672:5672"
- "15672:15672"
- "15692:15692"
- "61613:61613"
networks:
- app-network
env_file:
- .env
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
command: >
sh -c "rabbitmq-plugins enable rabbitmq_stomp rabbitmq_web_stomp rabbitmq_prometheus &&
rabbitmq-server"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "status"]
interval: 5s
timeout: 5s
retries: 10
prometheus:
container_name: prometheus-container
image: prom/prometheus:latest
ports:
- "9090:9090"
networks:
- app-network
command:
- "--config.file=/etc/prometheus/prometheus.yml.template"
- "--storage.tsdb.path=/prometheus"
environment:
TZ: Asia/Seoul
grafana:
container_name: grafana-container
image: grafana/grafana:latest
ports:
- "3000:3000"
networks:
- app-network
env_file:
- .env
environment:
GF_SECURITY_ADMIN_USER: ${GRAFANA_ADMIN_USER}
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD}
TZ: Asia/Seoul
depends_on:
- prometheus
nginx:
container_name: nginx-container
image: nginx:latest
ports:
- "80:80"
- "443:443"
networks:
- app-network
networks:
app-network:
name: app-network
driver: bridge