move
This commit is contained in:
parent
5575f710d7
commit
dee989f018
2 changed files with 7 additions and 1 deletions
|
@ -48,3 +48,7 @@
|
|||
src: traefic-docker-compose.yml
|
||||
dest: /opt/docke-compsoe/traefik/docker-compose.yml
|
||||
mode: '0644'
|
||||
|
||||
- name: Create and start services
|
||||
community.docker.docker_compose:
|
||||
project_src: /opt/docke-compsoe/traefik/
|
|
@ -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 }}`)"
|
||||
|
|
Loading…
Reference in a new issue