mirror of
https://github.com/StepanovPlaton/HomeServerServices.git
synced 2026-04-03 12:20:43 +04:00
25 lines
533 B
YAML
25 lines
533 B
YAML
services:
|
|
portainer:
|
|
image: portainer/portainer-ce:latest
|
|
container_name: portainer
|
|
restart: unless-stopped
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- portainer_data:/data
|
|
ports:
|
|
- "${PORTAINER_PORT:?}:9000"
|
|
- "8000:8000"
|
|
command: -H unix:///var/run/docker.sock
|
|
networks:
|
|
- portainer_network
|
|
|
|
volumes:
|
|
portainer_data:
|
|
|
|
networks:
|
|
portainer_network:
|
|
driver: bridge
|