diff --git a/playbooks/apps/all.yaml b/playbooks/apps/all.yaml index 3d874b1..9c7fd92 100644 --- a/playbooks/apps/all.yaml +++ b/playbooks/apps/all.yaml @@ -8,7 +8,7 @@ - import_playbook: display.yaml # noqa: name[play] - import_playbook: ghost-config.yaml # noqa: name[play] - import_playbook: ghost-update.yaml # noqa: name[play] -- import_playbook: gitea.yaml # noqa: name[play] +- import_playbook: git.yaml # noqa: name[play] - import_playbook: goatcounter.yaml # noqa: name[play] - import_playbook: lyon-transports.yaml # noqa: name[play] - import_playbook: manuels.yaml # noqa: name[play] @@ -21,4 +21,5 @@ - import_playbook: test_headers.yaml # noqa: name[play] - import_playbook: voice-pipeline.yaml # noqa: name[play] - import_playbook: wallabag.yaml # noqa: name[play] +- import_playbook: watchtower.yaml # noqa: name[play] - import_playbook: ynab.yaml # noqa: name[play] diff --git a/playbooks/apps/files/display/docker-compose.yaml b/playbooks/apps/files/display/docker-compose.yaml index eb6f581..18fef18 100644 --- a/playbooks/apps/files/display/docker-compose.yaml +++ b/playbooks/apps/files/display/docker-compose.yaml @@ -3,5 +3,7 @@ services: build: context: sources restart: always + labels: + - "com.centurylinklabs.watchtower.enable=false" ports: - "127.0.0.1:9010:80" diff --git a/playbooks/apps/files/git/docker-compose.yaml b/playbooks/apps/files/git/docker-compose.yaml index c3a010f..7fe50f3 100644 --- a/playbooks/apps/files/git/docker-compose.yaml +++ b/playbooks/apps/files/git/docker-compose.yaml @@ -1,6 +1,6 @@ services: server: - image: codeberg.org/forgejo/forgejo:8 + image: codeberg.org/forgejo/forgejo:9 env_file: gitea.env restart: always volumes: diff --git a/playbooks/apps/files/test_headers/docker-compose.yaml b/playbooks/apps/files/test_headers/docker-compose.yaml index 5d52c2f..2b57ad2 100644 --- a/playbooks/apps/files/test_headers/docker-compose.yaml +++ b/playbooks/apps/files/test_headers/docker-compose.yaml @@ -1,6 +1,6 @@ services: app: - image: python:3.13-slim + image: python:3-slim command: python /app/app.py volumes: - ./:/app diff --git a/playbooks/apps/files/watchtower/docker-compose.yaml b/playbooks/apps/files/watchtower/docker-compose.yaml new file mode 100644 index 0000000..2d61e1b --- /dev/null +++ b/playbooks/apps/files/watchtower/docker-compose.yaml @@ -0,0 +1,8 @@ +services: + watchtower: + image: containrrr/watchtower + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /home/gaugendre/.docker/config.json:/config.json + - /etc/localtime:/etc/localtime:ro + command: --interval 86400 --cleanup --include-restarting diff --git a/playbooks/apps/gitea.yaml b/playbooks/apps/git.yaml similarity index 99% rename from playbooks/apps/gitea.yaml rename to playbooks/apps/git.yaml index 061ff63..307ba10 100644 --- a/playbooks/apps/gitea.yaml +++ b/playbooks/apps/git.yaml @@ -1,5 +1,5 @@ --- -- name: Gitea +- name: Forgejo hosts: servers gather_facts: false tasks: diff --git a/playbooks/apps/watchtower.yaml b/playbooks/apps/watchtower.yaml new file mode 100644 index 0000000..5231404 --- /dev/null +++ b/playbooks/apps/watchtower.yaml @@ -0,0 +1,11 @@ +--- +- name: Watchtower + hosts: servers + gather_facts: false + tasks: + - name: Docker + ansible.builtin.include_role: + name: docker + + vars: + docker_app_name: watchtower