Add traefik autoconfigure docker
This commit is contained in:
parent
445c50dab6
commit
a4f981506f
4 changed files with 21 additions and 2 deletions
|
@ -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
|
||||||
```
|
```
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue