-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 1.24 KB
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
# docker-compose.yml
version: "3.8"
networks:
web: # 외부 네트워크 선언
external: true
services:
traefik:
image: traefik:v3.0
container_name: traefik
restart: always
ports:
- "80:80"
- "443:443"
- "8088:8088"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/traefik.yml:/etc/traefik/traefik.yml:ro
- ./traefik/dynamic_conf.yml:/etc/traefik/dynamic_conf.yml:ro
- ./traefik/letsencrypt:/etc/traefik # letsencrypt 데이터용 디렉토리 마운트
networks:
- web # web 네트워크 연결
environment:
- TRAEFIK_DASHBOARD_AUTH=rexume:$apr1$HtfOXLKL$QMj0r2dHvy0FnkLG.STWR1 # 대시보드 인증 정보
labels:
# 보안 대시보드 라우터 설정 (traefik.yourdomain.com 교체 필요)
- "traefik.http.routers.traefik-dashboard.rule=Host(`traefik.rexume.site`)"
- "traefik.http.routers.traefik-dashboard.entrypoints=dashboard"
- "traefik.http.routers.traefik-dashboard.entrypoints=websecure"
- "traefik.http.routers.traefik-dashboard.service=api@internal"
- "traefik.http.routers.traefik-dashboard.tls.certresolver=letsencrypt"
- "traefik.http.routers.traefik-dashboard.middlewares=dashboard-auth@file"