-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.38 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
version: '3.8'
services:
redis:
image: redis:latest
command: redis-server
container_name: redis
ports:
- '6379:6379'
spring:
image: fabeejoo/oduckio-spring
container_name: spring
depends_on:
- redis
ports:
- '8000:8000'
env_file:
- .env.spring
volumes:
# 로컬 logs < - > 컨테이너 logs 연결
# 로컬 /logs랑 안 섞이게 /data/logs로 연결
# 컨테이너상 서버 실행 경로 var/app/
- ./data/logs:/logs
proxy:
container_name: proxy
image: nginx:latest
ports:
- '80:80' # common web
# - '443:443' # https
# restart: unless-stopped
volumes:
- ./proxy/nginx.conf:/etc/nginx/nginx.conf
# - ./proxy/web.conf:/etc/nginx/web.conf
# - ./proxy/server-https-common.conf:/etc/nginx/server-https-common.conf:ro
# - /etc/letsencrypt/live/사이트이름:/etc/ssl:ro
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- '9090:9090'
restart: always
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- '3000:3000'
restart: always
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasources.yml