From 44cdc60ab353f2dd6a30c8d068160ef0c1448c99 Mon Sep 17 00:00:00 2001 From: aki Date: Fri, 25 Apr 2025 03:24:13 +0800 Subject: [PATCH] fix(docker-compose): remove SELinux context from Docker socket volume mounts --- docker-compose.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 50a11a8..3513310 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: - "80:80" - "443:443" volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro,z + - /var/run/docker.sock:/var/run/docker.sock:ro extra_hosts: - host.docker.internal:172.17.0.1 healthcheck: @@ -469,7 +469,7 @@ services: - HOMEPAGE_ALLOWED_HOSTS=${HOSTNAME} volumes: - ${CONFIG_ROOT:-.}/homepage:/app/config:Z - - /var/run/docker.sock:/var/run/docker.sock:ro,z + - /var/run/docker.sock:/var/run/docker.sock:ro - ${DATA_ROOT}:/data:Z restart: always command: @@ -486,7 +486,7 @@ services: environment: - WATCHTOWER_CLEANUP=true volumes: - - /var/run/docker.sock:/var/run/docker.sock:z + - /var/run/docker.sock:/var/run/docker.sock autoheal: image: willfarrell/autoheal:latest container_name: autoheal @@ -494,7 +494,7 @@ services: environment: - AUTOHEAL_CONTAINER_LABEL=all volumes: - - /var/run/docker.sock:/var/run/docker.sock:z + - /var/run/docker.sock:/var/run/docker.sock tailscale: image: tailscale/tailscale:latest container_name: tailscale @@ -508,7 +508,7 @@ services: ENABLE_FUNNEL_HTTPS: ${ENABLE_FUNNEL_HTTPS:-false} volumes: - ${CONFIG_ROOT:-.}/tailscale/state:/var/lib/tailscale:Z # Persist state - - /var/run/docker.sock:/var/run/docker.sock:z # Optional, keep if needed + - /var/run/docker.sock:/var/run/docker.sock # Optional, keep if needed devices: - /dev/net/tun:/dev/net/tun cap_add: