docker-compose/examples/portainer/compose.yaml

31 lines
585 B
YAML
Raw Normal View History

version: "3.9"
services:
portainer:
image: portainer/portainer-ce:2.20.1-alpine
container_name: portainer
hostname: portainer
restart: always
ports:
- "9000:9000"
- "9443:9443"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
volumes:
portainer_data:
networks:
app_network:
name: app_network
external: true
# driver: bridge
# driver_opts:
# encrypted: 'true'
# ipam:
# driver: default
# config:
# - subnet: 172.21.0.1/24