This commit is contained in:
Kekskurse 2023-07-21 03:22:20 +02:00
parent 5575f710d7
commit dee989f018
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
2 changed files with 7 additions and 1 deletions

View file

@ -47,4 +47,8 @@
ansible.builtin.template:
src: traefic-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/

View file

@ -24,10 +24,12 @@ services:
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
restart: always
whoami:
image: "traefik/whoami"
container_name: "simple-service"
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`{{ inventory_hostname }}`)"