Merge branch 'master' of ssh://git.pizzapim.nl:56287/pim/homeservers

This commit is contained in:
Pim Kunis 2023-02-07 22:55:19 +01:00
commit c5ad2aab9f
7 changed files with 34 additions and 0 deletions

View file

@ -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

View file

@ -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'}

View file

@ -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

View 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

View file

@ -0,0 +1,4 @@
dependencies:
- role: common
- role: docker

View 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

View file

@ -0,0 +1,2 @@
service_name: watchtower
service_dir: "{{ base_service_dir }}/{{ service_name }}"