Update portainer container configuration

This commit is contained in:
Francesco Antognazza 2023-02-07 14:04:44 +01:00
parent 61bed02f2f
commit 81e6e04429

View File

@ -13,7 +13,7 @@
become_user: containers
become: true
containers.podman.podman_image:
name: docker.io/portainer/portainer-ee:latest
name: docker.io/portainer/portainer-ce:latest
- name: Create traefik-portainer network
containers.podman.podman_network:
@ -35,7 +35,7 @@
become: true
containers.podman.podman_container:
name: portainer
image: docker.io/portainer/portainer-ee:latest
image: docker.io/portainer/portainer-ce:latest
state: present
security_opt:
- label=type:container_runtime_t
@ -52,6 +52,8 @@
traefik.http.routers.portainer.tls: "true"
traefik.http.routers.portainer.tls.certresolver: "wildcard"
traefik.http.routers.portainer.service: "portainer"
traefik.http.routers.portainer.middlewares: "portainer-prefixstrip@docker"
traefik.http.middlewares.portainer-prefixstrip.stripprefix.prefixes: "/portainer"
traefik.http.services.portainer.loadbalancer.server.port: "9000"
traefik.docker.network: "traefik-portainer"
generate_systemd: