2022-09-07 05:09:27 +00:00
|
|
|
version: "3.7"
|
2022-07-28 17:46:12 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
portainer:
|
2023-08-31 04:13:39 +00:00
|
|
|
image: portainer/portainer-ce:2.19.0-alpine
|
2022-07-28 17:46:12 +00:00
|
|
|
container_name: portainer
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2022-11-11 19:33:58 +00:00
|
|
|
- ${APP_PORT}:9443
|
2023-03-01 16:16:02 +00:00
|
|
|
- 9000:9000
|
2022-07-28 17:46:12 +00:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- "${APP_DATA_DIR}/data:/data"
|
|
|
|
networks:
|
2022-11-11 19:33:58 +00:00
|
|
|
- tipi_main_network
|
|
|
|
labels:
|
2023-06-18 16:02:29 +00:00
|
|
|
# Main
|
|
|
|
traefik.enable: true
|
|
|
|
traefik.http.middlewares.portainer-web-redirect.redirectscheme.scheme: https
|
|
|
|
traefik.http.services.portainer.loadbalancer.server.port: 9000
|
|
|
|
# Web
|
|
|
|
traefik.http.routers.portainer-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.portainer-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.portainer-insecure.service: portainer
|
|
|
|
traefik.http.routers.portainer-insecure.middlewares: portainer-web-redirect
|
|
|
|
# Websecure
|
2022-11-11 19:33:58 +00:00
|
|
|
traefik.http.routers.portainer.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.portainer.entrypoints: websecure
|
|
|
|
traefik.http.routers.portainer.service: portainer
|
|
|
|
traefik.http.routers.portainer.tls.certresolver: myresolver
|
2023-06-18 16:02:29 +00:00
|
|
|
# Local domain
|
|
|
|
traefik.http.routers.portainer-local-insecure.rule: Host(`portainer.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.portainer-local-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.portainer-local-insecure.service: portainer
|
|
|
|
traefik.http.routers.portainer-local-insecure.middlewares: portainer-web-redirect
|
|
|
|
# Local domain secure
|
|
|
|
traefik.http.routers.portainer-local.rule: Host(`portainer.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.portainer-local.entrypoints: websecure
|
|
|
|
traefik.http.routers.portainer-local.service: portainer
|
|
|
|
traefik.http.routers.portainer-local.tls: true
|