Standardized Portainer stack
This commit is contained in:
@@ -5,17 +5,17 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
portainer:
|
portainer:
|
||||||
image: portainer/portainer-ce:lts
|
image: portainer/portainer-ce:lts
|
||||||
container_name: portainer
|
container_name: portainer
|
||||||
restart: always
|
restart: unless-stopped # Recommended over "always" for modern setups
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000" # Agent port (you have this)
|
- "8000:8000" # Agent / API port (identical)
|
||||||
- "9000:9000" # Main HTTP UI
|
- "9443:9443" # HTTPS Web UI (identical)
|
||||||
- "9443:9443" # HTTPS 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:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
environment:
|
||||||
- TZ=America/New_York # ← Change to your actual timezone
|
- TZ=America/New_York # ← Change this to your actual timezone
|
||||||
Reference in New Issue
Block a user