21 lines
747 B
YAML
21 lines
747 B
YAML
version: '3.8'
|
|
|
|
volumes:
|
|
portainer_data:
|
|
|
|
services:
|
|
portainer:
|
|
image: portainer/portainer-ce:lts
|
|
container_name: portainer
|
|
restart: unless-stopped # Recommended over "always" for modern setups
|
|
ports:
|
|
- "8000:8000" # Agent / API port (identical)
|
|
- "9443:9443" # HTTPS Web UI (identical)
|
|
# - "9000:9000" # Plain HTTP UI — intentionally commented out (matches your current inspect)
|
|
volumes:
|
|
- portainer_data:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
- TZ=America/New_York # ← Change this to your actual timezone |