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
|
||||
|
||||
```bash
|
||||
ansible-galaxy collection install community.docker
|
||||
```
|
||||
|
||||
```bash
|
||||
ansible-playbook playbook.yml --ask-become-pass
|
||||
```
|
|
@ -25,6 +25,8 @@
|
|||
- containerd.io
|
||||
- docker-buildx-plugin
|
||||
- docker-compose-plugin
|
||||
- docker-compose
|
||||
- python-docker
|
||||
state: latest
|
||||
update_cache: true
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue