-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
125 lines (115 loc) · 2.72 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
version: "3"
services:
db:
image: mongo:latest
container_name: db
restart: unless-stopped
volumes:
- mongoVolume:/data/db
environment:
MONGO_INITDB_DATABASE: webapp
MONGODB_DATA_DIR: /data/db
ports:
- 27017:27017
backend:
restart: unless-stopped
container_name: backend
build:
context: ./backend-repo
ports:
- 5001:5001
volumes:
- ./backend-repo/:/backend/
environment:
FLASK_DEBUG: 1 #리로딩 설정
command: gunicorn -w 1 -b 0.0.0.0:5001 app:app --reload
depends_on:
- db
frontend:
container_name: frontend
restart: unless-stopped
build:
context: ./frontend-repo
command: ["yarn", "start"]
ports:
- 3001:3001
volumes:
- ./frontend-repo/:/frontend/
- build_folder:/frontend/build
- ./frontend-repo/node_modules/:/frontend/node_modules
environment:
- CI=true
- CHOKIDAR_USEPOLLING=true
- REACT_APP_BACKEND_URL=http://localhost:5001
tty: true
nginx:
build: ./nginx
ports:
- 80:8080
volumes:
- build_folder:/var/www/frontend
depends_on:
- backend
- frontend
rabbitmq:
hostname: rabbitmq
# 매니지먼트 플러그인이 적용된 이미지
image: "rabbitmq:3-management"
environment:
# 아이디 : admin
# 비밀번호 : mypass
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
ports:
- "5673:5672"
- "15673:15672"
restart: unless-stopped
celery:
restart: unless-stopped
build:
context: ./celery-repo
volumes:
- ./celery-repo/:/celery/
depends_on:
- rabbitmq
- backend
- db
prometheus:
container_name: prometheus
image: prom/prometheus:v2.2.1
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
environment:
- PROMETHEUS_COMMON_DISABLE_HTTP2
depends_on:
- backend
grafana:
container_name: grafana
image: grafana/grafana:latest
# user: "472"
# environment:
# - GF_INSTALL_PLUGINS=alexanderzobnin-zabbix-app,grafana-clock-panel,grafana-simple-json-datasource
volumes:
- grafana_data:/var/lib/grafana
- ./datasource.yml/:/etc/grafana/provisioning/datasource.yml
ports:
- 3000:3000
restart: always
depends_on:
- prometheus
# alertmanager:
# image: prom/alertmanager
# ports:
# - 9093:9093
# volumes:
# - ./alertmanager/:/etc/alertmanager/
# restart: always
# command:
# - '--config.file=/etc/alertmanager/config.yml'
# - '--storage.path=/alertmanager'
volumes:
mongoVolume:
build_folder: null
grafana_data: {}