Fix Docker socket for full container control

This commit is contained in:
Kevin Douglas
2026-04-27 10:35:21 -04:00
parent d1624c0539
commit 02b39d78ea
+3 -4
View File
@@ -9,12 +9,11 @@ services:
container_name: portainer container_name: portainer
restart: unless-stopped # Recommended over "always" for modern setups restart: unless-stopped # Recommended over "always" for modern setups
ports: ports:
- "8000:8000" # Agent / API port (identical) - "8000:8000" # Agent / API port
- "9443:9443" # HTTPS Web UI (identical) - "9443:9443" # HTTPS Web UI
# - "9000:9000" # Plain HTTP UI — intentionally commented out (matches your current inspect)
volumes: volumes:
- portainer_data:/data - portainer_data:/data
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
environment: environment: