version: '3.1'
services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
hostname: portainer
restart: always
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./portainer_data:/data"
- "./portainer_cn:/public"
environment:
TZ: Asia/Shanghai
LANG: en_US.UTF-8
ports:
- "9001:9000"
networks:
- net_db
networks:
net_db:
external: true
评论
发表评论