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
```bash
ansible-galaxy collection install community.docker
```
```bash
ansible-playbook playbook.yml --ask-become-pass
```

View file

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

View file

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

View file

@ -4,4 +4,17 @@
ansible.builtin.copy:
backup: true
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