Enable DNS in inter-container networks

This commit is contained in:
Francesco Antognazza 2023-02-06 09:59:41 +01:00
parent 44261862ad
commit 29ead64f6a
3 changed files with 249 additions and 252 deletions

View File

@ -69,7 +69,6 @@
name: "{{ item }}"
recreate: false
state: "present"
disable_dns: true
become_user: containers
become: true
loop:
@ -142,7 +141,7 @@
io.containers.autoupdate: "registry"
traefik.enable: "true"
traefik.http.routers.nextcloud.entrypoints: "https"
traefik.http.routers.nextcloud.rule: "Path(`/cloud`)"
traefik.http.routers.nextcloud.rule: "PathPrefix(`/cloud`)"
traefik.http.routers.nextcloud.tls: "true"
traefik.http.routers.nextcloud.tls.certresolver: "wildcard"
traefik.http.routers.nextcloud.service: "nextcloud"

View File

@ -18,7 +18,6 @@
name: traefik-portainer
recreate: false
state: "present"
disable_dns: true
become_user: containers
become: true
@ -47,7 +46,7 @@
io.containers.autoupdate: "registry"
traefik.enable: "true"
traefik.http.routers.portainer.entrypoints: "https"
traefik.http.routers.portainer.rule: "Path(`/portainer`)"
traefik.http.routers.portainer.rule: "PathPrefix(`/portainer`)"
traefik.http.routers.portainer.tls: "true"
traefik.http.routers.portainer.tls.certresolver: "wildcard"
traefik.http.routers.portainer.service: "portainer"

View File

@ -66,7 +66,6 @@
name: "{{ item }}"
recreate: false
state: "present"
disable_dns: true
become_user: containers
become: true
loop:
@ -100,7 +99,7 @@
traefik.enable: "true"
traefik.http.middlewares.traefik-auth.basicauth.users: "{{ vault_traefik_basic_auth }}"
traefik.http.routers.traefik.entrypoints: "https"
traefik.http.routers.traefik.rule: "Path(`/traefik`)"
traefik.http.routers.traefik.rule: "PathPrefix(`/traefik`)"
traefik.http.routers.traefik.middlewares: "traefik-auth@docker"
traefik.http.routers.traefik.tls: "true"
traefik.http.routers.traefik.tls.certresolver: "wildcard"