-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
104 lines (96 loc) · 2.37 KB
/
docker-compose.yaml
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
version: "3"
services:
# db:
# image: postgres:latest
# hostname: postgres
# container_name: postgres
# restart: always
# ports:
# - 5432:5432
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=1234
# volumes:
# - postgresVolume:/data/db/postgres
front:
container_name: front
restart: on-failure
build:
context: ./frontend-repo/slow-letter
dockerfile: Dockerfile
volumes:
# hot reload를 위해 mount
- ./frontend-repo/slow-letter:/usr/src/next
- /usr/src/next/node_modules
- /usr/src/next/.next
- build_folder:/frontend/build
ports:
- 3000:3000
backend:
restart: unless-stopped
container_name: backend
build:
context: ./backend-repo
ports:
- 8080:8080
volumes:
- ./backend-repo/:/backend/
environment: # springboot의 application-*.yml에 주입 필요한 정보
# S3_ACCESSKEY: "${S3_ACCESSKEY}"
# S3_SECRETKEY: "${S3_SECRETKEY}"
# S3_REGION: "${S3_REGION}"
# S3_BUCKET: "${S3_BUCKET}"
DB_HOSTNAME: ${DB_HOSTNAME}
DB_PORT: ${DB_PORT}
DB_DBNAME: ${DB_DBNAME}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
# depends_on:
# - db
nginx:
build: ./nginx
ports:
- 80:80
volumes:
- build_folder:/var/www/frontend
depends_on:
- backend
- front
# nginx:
# build: ./nginx
# ports:
# - 80:80
# volumes:
# - build_folder:/var/www/frontend
# depends_on:
# - backend
# - front
# 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:
# - 3333:3000
# restart: always
# depends_on:
# - prometheus
volumes:
# postgresVolume:
# grafana_data:
build_folder: null