add watchtower
Some checks failed
/ run ansible (push) Has been cancelled

This commit is contained in:
Gabriel Augendre 2024-10-17 18:14:50 +02:00
parent 6aa82a24d4
commit c6b897f218
7 changed files with 26 additions and 4 deletions

View file

@ -8,7 +8,7 @@
- import_playbook: display.yaml # noqa: name[play] - import_playbook: display.yaml # noqa: name[play]
- import_playbook: ghost-config.yaml # noqa: name[play] - import_playbook: ghost-config.yaml # noqa: name[play]
- import_playbook: ghost-update.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: goatcounter.yaml # noqa: name[play]
- import_playbook: lyon-transports.yaml # noqa: name[play] - import_playbook: lyon-transports.yaml # noqa: name[play]
- import_playbook: manuels.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: test_headers.yaml # noqa: name[play]
- import_playbook: voice-pipeline.yaml # noqa: name[play] - import_playbook: voice-pipeline.yaml # noqa: name[play]
- import_playbook: wallabag.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] - import_playbook: ynab.yaml # noqa: name[play]

View file

@ -3,5 +3,7 @@ services:
build: build:
context: sources context: sources
restart: always restart: always
labels:
- "com.centurylinklabs.watchtower.enable=false"
ports: ports:
- "127.0.0.1:9010:80" - "127.0.0.1:9010:80"

View file

@ -1,6 +1,6 @@
services: services:
server: server:
image: codeberg.org/forgejo/forgejo:8 image: codeberg.org/forgejo/forgejo:9
env_file: gitea.env env_file: gitea.env
restart: always restart: always
volumes: volumes:

View file

@ -1,6 +1,6 @@
services: services:
app: app:
image: python:3.13-slim image: python:3-slim
command: python /app/app.py command: python /app/app.py
volumes: volumes:
- ./:/app - ./:/app

View file

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

View file

@ -1,5 +1,5 @@
--- ---
- name: Gitea - name: Forgejo
hosts: servers hosts: servers
gather_facts: false gather_facts: false
tasks: tasks:

View file

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