From abb36dc0b9d64523c616ebe33a6e68b24fdcf11d Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 5 Dec 2025 12:50:27 +0500 Subject: [PATCH] Update file docker-compose.yml.j2 --- .../flibusta/templates/docker-compose.yml.j2 | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/roles/flibusta/templates/docker-compose.yml.j2 b/roles/flibusta/templates/docker-compose.yml.j2 index 0e51d6e..ba6258d 100644 --- a/roles/flibusta/templates/docker-compose.yml.j2 +++ b/roles/flibusta/templates/docker-compose.yml.j2 @@ -1,3 +1,25 @@ +services: + flibusta: + image: "{{ flibusta_image }}" + container_name: flibusta + restart: unless-stopped + mem_limit: "2g" + security_opt: + - no-new-privileges:true + ports: + - "{{ int_ip }}:{{ flibusta_port }}:8080" + environment: + - TZ={{ timezone }} + - WEBDAV_ENABLED={{ flibusta_webdav_enabled | lower }} + - OPDS_ENABLED={{ flibusta_opds_enabled | lower }} + volumes: + - "{{ flibusta_base_dir }}/config:/app/config:rw" + - "{{ flibusta_base_dir }}/data:/app/rw:rw" + - "{{ flibusta_books_dir }}:/books:rw" +{%- if flibusta_calibre_integration %} + - "{{ calibre_library_dir }}:/calibre:ro" +{%- endif %} +version: '3.8' services: flibusta: image: "{{ flibusta_image }}" @@ -20,7 +42,10 @@ services: - "{{ calibre_library_dir }}:/calibre:ro" {%- endif %} healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8080/health"] + test: + - CMD + - curl + - -f interval: 30s timeout: 10s retries: 3