mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-28 19:00:25 +00:00
4863e687a2
removed spaces to unindent volumes block from ports block
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
version: "3"
|
|
services:
|
|
portainer:
|
|
image: portainer/portainer-ce:latest
|
|
container_name: portainer
|
|
ports:
|
|
- 8000:8000
|
|
- 9443:9443
|
|
- 9000:9000 # for http
|
|
volumes:
|
|
- portainer_data:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
restart: unless-stopped
|
|
networks:
|
|
proxy:
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.portainer.entrypoints=http"
|
|
- "traefik.http.routers.portainer.rule=Host(`portainer.yourdomain.com`)"
|
|
- "traefik.http.middlewares.portainer-https-redirect.redirectscheme.scheme=https"
|
|
- "traefik.http.routers.portainer.middlewares=portainer-https-redirect"
|
|
- "traefik.http.routers.portainer-secure.entrypoints=https"
|
|
- "traefik.http.routers.portainer-secure.rule=Host(`portainer.yourdomain.com`)"
|
|
- "traefik.http.routers.portainer-secure.tls=true"
|
|
- "traefik.http.routers.portainer-secure.service=portainer"
|
|
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
|
- "traefik.docker.network=proxy"
|
|
volumes:
|
|
portainer_data:
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|