network isolation

This commit is contained in:
Yax 2021-12-12 12:02:11 +01:00
parent f8c8767a83
commit 2ea59dfae3
19 changed files with 121 additions and 42 deletions

View file

@ -9,7 +9,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
networks:
- srv
- portainer-frontend
restart: unless-stopped
expose:
- 9000
@ -23,6 +23,7 @@ services:
- traefik.http.middlewares.portainerPStrip.stripprefix.prefixes=${PATH_PORTAINER}
- traefik.http.middlewares.portainerRedir.redirectregex.regex=^(.*)${PATH_PORTAINER}$$
- traefik.http.middlewares.portainerRedir.redirectregex.replacement=$${1}${PATH_PORTAINER}/
- traefik.docker.network=portainer-frontend
volumes:
portainer_data: