2023-12-15 16:17:51 +08:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
portainer:
|
2024-04-22 18:53:00 +08:00
|
|
|
image: portainer/portainer-ce:2.20.1-alpine
|
2023-12-15 16:17:51 +08:00
|
|
|
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
|