docker soket via socket proxy
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
p4u1 2024-06-21 17:24:45 +02:00
parent ecc12b2b68
commit 963f2de30f
3 changed files with 40 additions and 4 deletions

View File

@ -1,3 +1,3 @@
export TRAEFIK_YML_VERSION=v18
export TRAEFIK_YML_VERSION=v21
export FILE_PROVIDER_YML_VERSION=v9
export ENTRYPOINT_VERSION=v2

View File

@ -11,7 +11,6 @@ services:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "letsencrypt:/etc/letsencrypt"
- "file-providers:/etc/traefik/file-providers"
configs:
@ -24,6 +23,7 @@ services:
mode: 0555
networks:
- proxy
- internal
environment:
- DASHBOARD_ENABLED
- LOG_LEVEL
@ -50,9 +50,45 @@ services:
- "coop-cloud.${STACK_NAME}.version=2.5.0+v2.11.0"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
socket-proxy:
image: lscr.io/linuxserver/socket-proxy:latest
environment:
- ALLOW_START=0
- ALLOW_STOP=0
- ALLOW_RESTARTS=0
- AUTH=0
- BUILD=0
- COMMIT=0
- CONFIGS=0
- CONTAINERS=1 # Needs access
- DISABLE_IPV6=0
- DISTRIBUTION=0
- EVENTS=1 # Needs access
- EXEC=0
- IMAGES=0
- INFO=0
- NETWORKS=1 # Needs access
- NODES=0
- PING=0
- POST=0
- PLUGINS=0
- SECRETS=0
- SERVICES=1 # Needs access
- SESSION=0
- SWARM=0
- SYSTEM=0
- TASKS=1 # Needs access
- VERSION=1 # Needs access
- VOLUMES=0
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- internal
networks:
proxy:
external: true
internal:
configs:
traefik_yml:

View File

@ -4,7 +4,7 @@ log:
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
endpoint: "tcp://socket-proxy:2375"
exposedByDefault: false
network: proxy
swarmMode: true