Skip to content

Commit

Permalink
adding portainer
Browse files Browse the repository at this point in the history
add volume for portainer

fix labels

portainer over http
  • Loading branch information
LegitCamper committed Feb 29, 2024
1 parent fb5e570 commit f8efc3f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions utilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,37 @@ networks:
internal:
external: false

volumes:
portainer_data:

services:
portainer:
container_name: portainer
image: portainer/portainer-ee:latest
restart: always
networks:
- web
ports:
- 9443:9443
- 9000:9000
volumes:
- portainer_data:/data
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.portainer.entrypoints=http"
- "traefik.http.routers.portainer.rule=Host(`portainer.${DOMAIN}`)"
- "traefik.http.middlewares.portainer-https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.portainer.middlewares=portainer-https-redirect"
- "traefik.http.routers.portainer-secure.entrypoints=https"
- "traefik.http.services.auth.loadbalancer.server.port=9000"
- "traefik.http.routers.portainer-secure.rule=Host(`portainer.${DOMAIN}`)"
- "traefik.http.routers.portainer-secure.tls=true"
- "traefik.http.routers.portainer-secure.tls.certresolver=${DNS}"
- "traefik.http.routers.portainer-secure.middlewares=forward-auth"

registry: # My own docker registry
container_name: registry
image: registry
Expand Down

0 comments on commit f8efc3f

Please sign in to comment.