Don't attach containers to default network
This commit is contained in:
parent
af3ec54ca1
commit
a1f6b035c7
|
@ -1,10 +1,17 @@
|
||||||
# vim: ft=yaml.ansible
|
# vim: ft=yaml.ansible
|
||||||
---
|
---
|
||||||
|
- name: Create Docker network for Watchtower
|
||||||
|
docker_network:
|
||||||
|
name: watchtower
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Deploy Watchtower Docker container
|
- name: Deploy Watchtower Docker container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: watchtower
|
name: watchtower
|
||||||
image: containrrr/watchtower:{{ services.watchtower.version }}
|
image: containrrr/watchtower:{{ services.watchtower.version }}
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
|
networks:
|
||||||
|
- name: watchtower
|
||||||
env:
|
env:
|
||||||
WATCHTOWER_POLL_INTERVAL: '3600'
|
WATCHTOWER_POLL_INTERVAL: '3600'
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -7,11 +7,18 @@
|
||||||
mode: u=rwx,g=rx,o=rx
|
mode: u=rwx,g=rx,o=rx
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
- name: Create Docker network for Wireguard
|
||||||
|
docker_network:
|
||||||
|
name: wireguard
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Deploy Wireguard Docker container
|
- name: Deploy Wireguard Docker container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: wireguard
|
name: wireguard
|
||||||
image: linuxserver/wireguard:{{ services.wireguard.version }}
|
image: linuxserver/wireguard:{{ services.wireguard.version }}
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
|
networks:
|
||||||
|
- name: wireguard
|
||||||
env:
|
env:
|
||||||
SERVERURL: "{{ services.wireguard.domain }}"
|
SERVERURL: "{{ services.wireguard.domain }}"
|
||||||
SERVERPORT: '51820'
|
SERVERPORT: '51820'
|
||||||
|
|
Reference in a new issue