diff options
author | brodokk <brodokk@brodokk.space> | 2021-11-16 18:27:22 +0100 |
---|---|---|
committer | brodokk <brodokk@brodokk.space> | 2021-11-16 18:27:22 +0100 |
commit | cef0b02205c9bd409ecc2fc021ade564c7ff36d9 (patch) | |
tree | 4427dbd6ae6aed955512905312fdb4f5635df6f4 /docker-compose_portainer.yml | |
parent | 02dd6b7942c366da9ee2cf16375585443512c05f (diff) | |
download | neosvr_docker-cef0b02205c9bd409ecc2fc021ade564c7ff36d9.tar.xz neosvr_docker-cef0b02205c9bd409ecc2fc021ade564c7ff36d9.zip |
Add portainer support
Diffstat (limited to '')
-rw-r--r-- | docker-compose_portainer.yml | 42 |
1 files changed, 42 insertions, 0 deletions
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=<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 '<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(`<DOMAIN>`)" + - "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" |