-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-deploy.yml
157 lines (143 loc) · 3.32 KB
/
docker-compose-deploy.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
services:
fastapi-green:
container_name: fastapi-green
build: app/
volumes:
- ~/.aws:/root/.aws
- ./app:/app
environment:
- SERVER_NAME=green
ports:
- "8000:8000"
restart: always
networks:
- teamhnet
fastapi-blue:
build: app/
container_name: fastapi-blue
volumes:
- ~/.aws:/root/.aws
ports:
- "8001:8000"
environment:
- SERVER_NAME=blue
restart: always
networks:
- teamhnet
redis:
container_name: redis
image: redis
ports:
- "6379:6379"
networks:
- teamhnet
prometheus:
container_name: prometheus
image: prom/prometheus:latest
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- "9090:9090"
environment:
- TZ=Asia/Seoul
networks:
- teamhnet
grafana:
container_name: grafana
image: grafana/grafana:latest
volumes:
- ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources/
- ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards/
ports:
- "3000:3000"
environment:
- TZ=Asia/Seoul
networks:
- teamhnet
cadvisor:
container_name: cadvisor
image: gcr.io/cadvisor/cadvisor:latest
ports:
- "8080:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
privileged: true
environment:
- TZ=Asia/Seoul
networks:
- teamhnet
# elasticsearch:
# container_name: elasticsearch
# image: docker.elastic.co/elasticsearch/elasticsearch:7.17.4
# environment:
# - discovery.type=single-node
# ports:
# - "9200:9200"
# networks:
# - teamhnet
#
#
# logstash:
# container_name: logstash
# image: docker.elastic.co/logstash/logstash:7.17.4
# ports:
# - "5044:5044"
# volumes:
# - ./monitoring/elk/logstash/pipeline/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
# - ./monitoring/elk/logstash/logstash.yml:/usr/share/logstash/config/logstash.yml
# networks:
# - teamhnet
#
#
# kibana:
# container_name: kibana
# image: docker.elastic.co/kibana/kibana:7.17.4
# ports:
# - "5601:5601"
# environment:
# ELASTICSEARCH_HOSTS: "http://elasticsearch:9200"
# networks:
# - teamhnet
#
#
# filebeat:
# container_name: filebeat
# image: docker.elastic.co/beats/filebeat:7.17.4
# volumes:
# - ./monitoring/elk/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml # 경로 수정
# - ./app/logs:/app/logs:ro
# depends_on:
# - logstash
# networks:
# - teamhnet
nginx:
container_name: nginx
image: nginx:latest
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/configs:/etc/nginx/configs
ports:
- "80:80"
restart: always
environment:
- TZ=Asia/Seoul
networks:
- teamhnet
nginx-prometheus-exporter:
container_name: nginx-prometheus-exporter
image: nginx/nginx-prometheus-exporter:1.3
environment:
- SCRAPE_URI=http://nginx:9110/metrics
- TZ=Asia/Seoul
ports:
- "9113:9113"
networks:
- teamhnet
networks:
teamhnet: