update traefik with socket proxy (#29)
Reviewed-on: #29 Co-authored-by: ryuupendragon <ryuu@ryuu.in> Co-committed-by: ryuupendragon <ryuu@ryuu.in>
This commit was merged in pull request #29.
This commit is contained in:
@@ -1,8 +1,25 @@
|
|||||||
services:
|
services:
|
||||||
|
traefik_socket_proxy:
|
||||||
|
container_name: traefik_socket_proxy
|
||||||
|
image: ghcr.io/11notes/socket-proxy:2.1.3
|
||||||
|
restart: unless-stopped
|
||||||
|
read_only: true
|
||||||
|
user: ${PUID}:${PGID}
|
||||||
|
environment:
|
||||||
|
TZ: ${TZ}
|
||||||
|
volumes:
|
||||||
|
- /run/docker.sock:/run/docker.sock:ro
|
||||||
|
- socket-proxy:/run/proxy
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
traefik:
|
traefik:
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
image: docker.io/library/traefik:v3.5.0
|
image: docker.io/library/traefik:v3.5.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
traefik_socket_proxy:
|
||||||
|
condition: service_healthy
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
secrets:
|
secrets:
|
||||||
@@ -14,7 +31,7 @@ services:
|
|||||||
- ${APPDATA_PATH}/traefik/data/acme.json:/acme.json
|
- ${APPDATA_PATH}/traefik/data/acme.json:/acme.json
|
||||||
- ${APPDATA_PATH}/traefik/logs:/var/log/traefik
|
- ${APPDATA_PATH}/traefik/logs:/var/log/traefik
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- socket-proxy:/var/run
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
@@ -29,3 +46,6 @@ networks:
|
|||||||
secrets:
|
secrets:
|
||||||
cf_api_token:
|
cf_api_token:
|
||||||
file: ${APPDATA_PATH}/traefik/secrets/cf_api_token
|
file: ${APPDATA_PATH}/traefik/secrets/cf_api_token
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
socket-proxy:
|
||||||
|
|||||||
Reference in New Issue
Block a user