2023-12-15 16:17:51 +08:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
portainer:
|
2024-10-11 01:18:00 +08:00
|
|
|
image: portainer/portainer-ce:2.22.0-alpine
|
2023-12-15 16:17:51 +08:00
|
|
|
container_name: portainer
|
|
|
|
hostname: portainer
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
- "9443:9443"
|
|
|
|
volumes:
|
2024-05-22 17:26:00 +08:00
|
|
|
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
2023-12-15 16:17:51 +08:00
|
|
|
- /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:
|
2024-05-22 17:26:00 +08:00
|
|
|
# - subnet: 10.21.22.1/24
|