From 8ef541615f09cbc5dbb81f1f3fc112fe64a7b57a Mon Sep 17 00:00:00 2001 From: lab Date: Thu, 2 Dec 2021 23:32:58 +0800 Subject: [PATCH] fix: add docker.sock --- portainer/docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/portainer/docker-compose.yml b/portainer/docker-compose.yml index 1778d95..662a03d 100644 --- a/portainer/docker-compose.yml +++ b/portainer/docker-compose.yml @@ -3,6 +3,7 @@ version: "3.9" services: portainer: image: portainer/portainer-ce + container_name: "portainer.esin.io" environment: - "TZ=Asia/Shanghai" labels: @@ -16,9 +17,10 @@ services: - "traefik.http.services.portainer.loadbalancer.server.port=9000" volumes: - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock networks: - traefik - + networks: traefik: external: true