fix: add docker.sock

This commit is contained in:
lab 2021-12-02 23:32:58 +08:00
parent 638e7d5273
commit 8ef541615f

View File

@ -3,6 +3,7 @@ version: "3.9"
services: services:
portainer: portainer:
image: portainer/portainer-ce image: portainer/portainer-ce
container_name: "portainer.esin.io"
environment: environment:
- "TZ=Asia/Shanghai" - "TZ=Asia/Shanghai"
labels: labels:
@ -16,9 +17,10 @@ services:
- "traefik.http.services.portainer.loadbalancer.server.port=9000" - "traefik.http.services.portainer.loadbalancer.server.port=9000"
volumes: volumes:
- ./data:/data - ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
networks: networks:
- traefik - traefik
networks: networks:
traefik: traefik:
external: true external: true