31 lines
604 B
YAML
31 lines
604 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
portainer:
|
|
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
|