docker-compose/examples/portainer/compose.yaml

31 lines
604 B
YAML
Raw Normal View History

version: "3.9"
services:
portainer:
2024-10-11 01:18:00 +08:00
image: portainer/portainer-ce:2.22.0-alpine
container_name: portainer
hostname: portainer
restart: always
ports:
- "9000:9000"
- "9443:9443"
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/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: 10.21.22.1/24