Merge branch 'master' of ssh://git.pizzapim.nl:56287/pim/homeservers
This commit is contained in:
commit
c5ad2aab9f
7 changed files with 34 additions and 0 deletions
|
@ -38,6 +38,9 @@ All services below are running under Docker, except NSD and Borg.
|
||||||
- Host tobb website?
|
- Host tobb website?
|
||||||
- Move from Ubuntu to Debian
|
- Move from Ubuntu to Debian
|
||||||
- move to pim.kunis.nl
|
- move to pim.kunis.nl
|
||||||
|
- security.txt
|
||||||
|
- Podman
|
||||||
|
- Replace watchtower with Podman features
|
||||||
|
|
||||||
### NSD
|
### NSD
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
hosts: homeserver
|
hosts: homeserver
|
||||||
roles:
|
roles:
|
||||||
- {role: 'ssh', tags: 'ssh'}
|
- {role: 'ssh', tags: 'ssh'}
|
||||||
|
- {role: 'watchtower', tags: 'watchtower'}
|
||||||
- {role: 'borg', tags: 'borg'}
|
- {role: 'borg', tags: 'borg'}
|
||||||
- {role: 'nsd', tags: 'nsd'}
|
- {role: 'nsd', tags: 'nsd'}
|
||||||
- {role: 'forgejo', tags: 'forgejo'}
|
- {role: 'forgejo', tags: 'forgejo'}
|
||||||
|
|
|
@ -4,6 +4,8 @@ services:
|
||||||
syncthing:
|
syncthing:
|
||||||
image: lscr.io/linuxserver/syncthing:latest
|
image: lscr.io/linuxserver/syncthing:latest
|
||||||
container_name: syncthing
|
container_name: syncthing
|
||||||
|
labels:
|
||||||
|
- "com.centurylinklabs.watchtower.enable=false"
|
||||||
hostname: syncthing
|
hostname: syncthing
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
|
|
8
roles/watchtower/files/docker-compose.yml
Normal file
8
roles/watchtower/files/docker-compose.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
command: --schedule "0 0 4 * * *" --include-restarting --cleanup --include-stopped --no-startup-message
|
||||||
|
restart: always
|
4
roles/watchtower/meta/main.yml
Normal file
4
roles/watchtower/meta/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
dependencies:
|
||||||
|
- role: common
|
||||||
|
- role: docker
|
||||||
|
|
14
roles/watchtower/tasks/main.yml
Normal file
14
roles/watchtower/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
- name: Create app directory
|
||||||
|
file:
|
||||||
|
path: "{{ service_dir }}"
|
||||||
|
state: directory
|
||||||
|
- name: Copy Docker Compose script
|
||||||
|
copy:
|
||||||
|
src: "{{ role_path }}/files/docker-compose.yml"
|
||||||
|
dest: "{{ service_dir }}/docker-compose.yml"
|
||||||
|
- name: Start the Docker Compose
|
||||||
|
docker_compose:
|
||||||
|
project_src: "{{ service_dir }}"
|
||||||
|
pull: true
|
||||||
|
remove_orphans: true
|
||||||
|
|
2
roles/watchtower/vars/main.yml
Normal file
2
roles/watchtower/vars/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
service_name: watchtower
|
||||||
|
service_dir: "{{ base_service_dir }}/{{ service_name }}"
|
Reference in a new issue