From c469de478395b21a948435e0807057cbda422da0 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Tue, 30 Sep 2025 19:49:51 +0200 Subject: [PATCH] feat: improved install task --- tasks/install.yaml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/tasks/install.yaml b/tasks/install.yaml index 1fd5a79..c8574fd 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -14,19 +14,41 @@ # run semaphore - name: "run semaphore" community.docker.docker_container: + + # container_default_behavior + auto_remove: "no" container_default_behavior: "no_defaults" detach: "yes" + init: "no" + interactive: "no" + log_driver: "json-file" + log_options: + max-size: "5m" + max-file: "3" + memory: "0" + paused: "no" + privileged: "no" pull: "always" + read_only: "no" state: "started" - name: "semaphore" + tty: "no" + + # semaphore + name: "semaphore-app" image: "docker.io/semaphoreui/semaphore:v2.16.18" + image_name_mismatch: "recreate" restart_policy: "unless-stopped" - ports: - - "3000:3000" + + networks: + - name: "semaphore" + volumes: - "/mnt/semaphore/data:/var/lib/semaphore" - "/mnt/semaphore/tmp:/tmp/semaphore" + ports: + - "3000:3000/tcp" + env: # ansible