This commit is contained in:
2024-07-14 17:40:10 +02:00
parent 9fb94a8d42
commit 97e4d4279c

View File

@@ -179,9 +179,22 @@
- "/var/run/docker.sock:/var/run/docker.sock:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro"
networks: networks:
- public - public
# ports:
# - "80:80"
# - "443:443"
ports: ports:
- "80:80" - target: 80
- "443:443" published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
# - target: 443
# published: 443
# protocol: udp
# mode: host
# For Mattermost # For Mattermost
# - "8443:8443" # - "8443:8443"
configs: configs:
@@ -218,8 +231,7 @@
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https" - "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https" - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.middlewares.privatevpn.ipwhitelist.sourcerange=100.96.0.0/16" - "traefik.http.middlewares.privatevpn.ipwhitelist.sourcerange=100.96.0.0/16"
- "traefik.http.routers.dashboard.middlewares=privatevpn" # - "traefik.http.routers.dashboard.middlewares=privatevpn"
agent: agent:
image: portainer/agent:latest image: portainer/agent:latest
environment: environment: