File tree Expand file tree Collapse file tree 4 files changed +40
-17
lines changed
Expand file tree Collapse file tree 4 files changed +40
-17
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ services:
3737 exec gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers=4 --threads=2"
3838 depends_on :
3939 - mysqldb
40- # labels:
41- # - "traefik.enable=true"
42- # - "traefik.http.routers.backend.rule=Host(`api.localhost`)"
43- # - "traefik.http.services.backend.loadbalancer.server.port=8000"
4440 networks :
4541 - app-network
4642
Original file line number Diff line number Diff line change @@ -24,6 +24,20 @@ services:
2424 - " traefik.http.services.portainer.loadbalancer.server.port=9000"
2525 - " traefik.http.routers.portainer.middlewares=auth@file"
2626
27+ agent :
28+ image : portainer/agent:latest
29+ container_name : portainer_agent
30+ environment :
31+ - AGENT_CLUSTER_ADDR=tasks.agent
32+ - DOCKER_HOST=unix:///var/run/docker.sock
33+ volumes :
34+ - /var/run/docker.sock:/var/run/docker.sock
35+ - /var/lib/docker/volumes:/var/lib/docker/volumes
36+ networks :
37+ - web
38+ - app-network
39+ restart : always
40+
2741volumes :
2842 portainer_data :
2943
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ services:
2121 labels :
2222 # 보안 대시보드 라우터 설정 (traefik.yourdomain.com 교체 필요)
2323 - " traefik.http.routers.traefik-dashboard.rule=Host(`traefik.autonotify.store`)"
24- - " traefik.http.routers.traefik-dashboard.entrypoints=dashboard"
2524 - " traefik.http.routers.traefik-dashboard.entrypoints=websecure"
2625 - " traefik.http.routers.traefik-dashboard.service=api@internal"
2726 - " traefik.http.routers.traefik-dashboard.tls.certresolver=letsencrypt"
Original file line number Diff line number Diff line change 11entryPoints :
22 web :
33 address : " :80"
4- http :
5- redirections :
6- entryPoint :
7- to : websecure
8- scheme : https
4+
95 websecure :
106 address : " :443"
7+
118 dashboard :
129 address : " :8088"
1310
1411api :
1512 dashboard : true
16- insecure : false # true로 변경하면 대시보드 접근 시 인증 불필요 (테스트 용도)
13+ insecure : false
1714
1815log :
19- level : INFO # DEBUG 로 변경하면 더 상세한 로그 확인 가능
16+ level : INFO
2017
2118accessLog : {}
2219
2320providers :
2421 docker :
2522 exposedByDefault : false
2623 network : web
24+
2725 file :
28- filename : " /etc/traefik/dynamic_conf.yml" # 컨테이너 내부 경로. 실제 마운트 경로 확인 필요
29- # watch: true # 필요 시 파일 변경 감지 활성화
26+ filename : " /etc/traefik/dynamic_conf.yml"
3027
3128certificatesResolvers :
3229 letsencrypt :
3330 acme :
34- email : sanghun@gmail.com # 실제 사용하는 이메일 주소 권장
35- storage : /etc/traefik/acme.json # acme 인증서 저장 경로 (볼륨 마운트 필수)
31+ email : sanghun@gmail.com
32+ storage : /etc/traefik/acme.json
3633 httpChallenge :
37- entryPoint : web # HTTP 챌린지는 'web'(80) 엔트리포인트 사용
34+ entryPoint : web
35+
36+ http :
37+ middlewares :
38+ redirect-to-https :
39+ redirectScheme :
40+ scheme : https
41+ permanent : true
42+
43+ routers :
44+ redirect-all :
45+ rule : " PathPrefix(`/`)"
46+ entryPoints :
47+ - web
48+ middlewares :
49+ - redirect-to-https
50+ service : noop@internal
51+ priority : 1
You can’t perform that action at this time.
0 commit comments