1
0
Fork 0

Add traefik autoconfigure docker

This commit is contained in:
Florian RICHER 2023-05-03 22:35:19 +02:00
parent 445c50dab6
commit a4f981506f
4 changed files with 21 additions and 2 deletions

View file

@ -1,5 +1,9 @@
# Configure # Configure
```bash
ansible-galaxy collection install community.docker
```
```bash ```bash
ansible-playbook playbook.yml --ask-become-pass ansible-playbook playbook.yml --ask-become-pass
``` ```

View file

@ -25,6 +25,8 @@
- containerd.io - containerd.io
- docker-buildx-plugin - docker-buildx-plugin
- docker-compose-plugin - docker-compose-plugin
- docker-compose
- python-docker
state: latest state: latest
update_cache: true update_cache: true

View file

@ -46,6 +46,6 @@ certificatesResolvers:
tlschallenge: {} tlschallenge: {}
storage: acme.json storage: acme.json
keyType: RSA4096 keyType: RSA4096
#caServer: "https://acme-staging-v02.api.letsencrypt.org/directory" caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
httpChallenge: httpChallenge:
entryPoint: http entryPoint: http

View file

@ -5,3 +5,16 @@
backup: true backup: true
src: . src: .
dest: traefik/ dest: traefik/
- name: Create proxy network
community.docker.docker_network:
name: proxy
state: present
become: true
- name: Update or start container
community.docker.docker_compose:
project_src: traefik
state: present
pull: true
become: true