From 638e7d527343d583b6f7a24c40b99eaa5d1cef4d Mon Sep 17 00:00:00 2001 From: lab Date: Thu, 2 Dec 2021 23:23:17 +0800 Subject: [PATCH] feat: add portainer --- portainer/docker-compose.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 portainer/docker-compose.yml diff --git a/portainer/docker-compose.yml b/portainer/docker-compose.yml new file mode 100644 index 0000000..1778d95 --- /dev/null +++ b/portainer/docker-compose.yml @@ -0,0 +1,24 @@ +version: "3.9" + +services: + portainer: + image: portainer/portainer-ce + environment: + - "TZ=Asia/Shanghai" + labels: + - "traefik.enable=true" + - "traefik.http.routers.portainer.rule=Host(`portainer.esin.io`)" + - "traefik.http.routers.portainer.entrypoints=websecure" + - "traefik.http.routers.portainer.tls=true" + - "traefik.http.routers.portainer.middlewares=portainer-mw" + - "traefik.http.middlewares.portainer-mw.compress=true" + - "traefik.http.middlewares.portainer-mw.compress.excludedcontenttypes=text/event-stream" + - "traefik.http.services.portainer.loadbalancer.server.port=9000" + volumes: + - ./data:/data + networks: + - traefik + +networks: + traefik: + external: true