chore: remove traefik
This commit is contained in:
@@ -32,10 +32,17 @@
|
|||||||
group: root # GID Traefik runs as
|
group: root # GID Traefik runs as
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
|
|
||||||
|
- name: Pull docker image
|
||||||
|
community.docker.docker_image:
|
||||||
|
image: traefik
|
||||||
|
tag: v3.5
|
||||||
|
source: pull
|
||||||
|
register: docker_image
|
||||||
|
|
||||||
- name: Create traefik Container
|
- name: Create traefik Container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: traefik
|
name: traefik
|
||||||
image: traefik:v3.5
|
image: "{{ docker_image.image.RepoTags[0] }}"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- name: "proxy"
|
- name: "proxy"
|
||||||
@@ -70,3 +77,5 @@
|
|||||||
traefik.http.routers.traefik-secure.tls.domains[1].main: "comprofix.xyz"
|
traefik.http.routers.traefik-secure.tls.domains[1].main: "comprofix.xyz"
|
||||||
traefik.http.routers.traefik-secure.tls.domains[1].sans: "*.comprofix.xyz"
|
traefik.http.routers.traefik-secure.tls.domains[1].sans: "*.comprofix.xyz"
|
||||||
traefik.http.routers.traefik-secure.service: "api@internal"
|
traefik.http.routers.traefik-secure.service: "api@internal"
|
||||||
|
when: docker_image.changed
|
||||||
|
register: container_traefik
|
||||||
|
Reference in New Issue
Block a user