-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
127 lines (114 loc) · 2.63 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
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
services:
fastapi-server:
container_name: fastapi
build: app/
volumes:
- ~/.aws:/root/.aws
- ./app:/app
ports:
- "8000:8000"
develop:
watch:
- action: sync
path: app/
target: app/
ignore:
- venv/
- __pycache__/
- action: rebuild
path: app/requirements.txt
target: app/
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"
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"
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
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
networks:
teamhnet:
driver: bridge