move
This commit is contained in:
parent
5575f710d7
commit
dee989f018
2 changed files with 7 additions and 1 deletions
|
@ -47,4 +47,8 @@
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: traefic-docker-compose.yml
|
src: traefic-docker-compose.yml
|
||||||
dest: /opt/docke-compsoe/traefik/docker-compose.yml
|
dest: /opt/docke-compsoe/traefik/docker-compose.yml
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: Create and start services
|
||||||
|
community.docker.docker_compose:
|
||||||
|
project_src: /opt/docke-compsoe/traefik/
|
|
@ -24,10 +24,12 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "./letsencrypt:/letsencrypt"
|
- "./letsencrypt:/letsencrypt"
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
restart: always
|
||||||
|
|
||||||
whoami:
|
whoami:
|
||||||
image: "traefik/whoami"
|
image: "traefik/whoami"
|
||||||
container_name: "simple-service"
|
container_name: "simple-service"
|
||||||
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.whoami.rule=Host(`{{ inventory_hostname }}`)"
|
- "traefik.http.routers.whoami.rule=Host(`{{ inventory_hostname }}`)"
|
||||||
|
|
Loading…
Reference in a new issue