-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-aws.yml
76 lines (68 loc) Β· 1.89 KB
/
docker-compose-aws.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.8'
services:
redis:
container_name: redis
image: redis:6
ports:
- "6379:6379"
restart: always # μκΈ°μΉ μμ μ€λ₯ μ μλμΌλ‘ μ¬μμ
networks:
- backend-network
springboot:
container_name: springboot_splanet
build:
context: .
dockerfile: Dockerfile
restart: always # μκΈ°μΉ μμ μ€λ₯ μ μλμΌλ‘ μ¬μμ
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://${RDS_ENDPOINT}:3306/${MYSQL_DATABASE}
SPRING_DATASOURCE_USERNAME: ${MYSQL_USER}
SPRING_DATASOURCE_PASSWORD: ${MYSQL_PASSWORD}
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE}
ports:
- "8080:8080"
networks:
- backend-network
prometheus:
container_name: prometheus
image: prom/prometheus
restart: always # μκΈ°μΉ μμ μ€λ₯ μ μλμΌλ‘ μ¬μμ
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- backend-network
node-exporter:
image: prom/node-exporter
ports:
- "9100:9100"
restart: always # μκΈ°μΉ μμ μ€λ₯ μ μλμΌλ‘ μ¬μμ
networks:
- backend-network
mysqld-exporter:
image: prom/mysqld-exporter
environment:
DATA_SOURCE_NAME: "${MYSQL_USER}:${MYSQL_PASSWORD}@tcp(${RDS_ENDPOINT}:3306)/"
ports:
- "9104:9104"
restart: always # μκΈ°μΉ μμ μ€λ₯ μ μλμΌλ‘ μ¬μμ
networks:
- backend-network
grafana:
container_name: grafana
image: grafana/grafana
restart: always # μκΈ°μΉ μμ μ€λ₯ μ μλμΌλ‘ μ¬μμ
volumes:
- grafana-storage:/var/lib/grafana
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD}
networks:
- backend-network
volumes:
grafana-storage:
networks:
backend-network:
driver: bridge