From cef0b02205c9bd409ecc2fc021ade564c7ff36d9 Mon Sep 17 00:00:00 2001 From: brodokk Date: Tue, 16 Nov 2021 18:27:22 +0100 Subject: Add portainer support --- docker-compose_portainer.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docker-compose_portainer.yml (limited to 'docker-compose_portainer.yml') diff --git a/docker-compose_portainer.yml b/docker-compose_portainer.yml new file mode 100644 index 0000000..14a5440 --- /dev/null +++ b/docker-compose_portainer.yml @@ -0,0 +1,42 @@ +version: "3.7" + +services: + + reverse-proxy: + image: traefik:v2.4 + command: + - --providers.docker + - --entrypoints.web.address=:80 + - --entrypoints.websecure.address=:443 + - --providers.docker + - --certificatesresolvers.leresolver.acme.httpchallenge=true + - --certificatesresolvers.leresolver.acme.email= + - --certificatesresolvers.leresolver.acme.httpchallenge.entrypoint=web + - --certificatesresolvers.leresolver.acme.storage=/letsencrypt/acme.json" + ports: + - "80:80" + - "443:443" + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ./letsencrypt:/letsencrypt + labels: + - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)" + - "traefik.http.routers.http-catchall.entrypoints=web" + - "traefik.http.routers.http-catchall.middlewares=redirect-to-https" + - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https" + + portainer: + image: portainer/portainer-ce:2.0.0 + command: -H unix:///var/run/docker.sock --admin-password '' + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + - /etc/localtime:/etc/localtime:ro + - ./dataportainer:/data + labels: + - "traefik.enable=true" + - "traefik.http.routers.portainer_frontend.rule=Host(``)" + - "traefik.http.routers.portainer_frontend.entrypoints=websecure" + - "traefik.http.routers.portainer_frontend.service=portainer_frontend" + - "traefik.http.routers.portainer_frontend.tls=true" + - "traefik.http.routers.portainer_frontend.tls.certresolver=leresolver" + - "traefik.http.services.portainer_frontend.loadbalancer.server.port=9000" -- cgit v1.2.1