cloudserve-infrastructure/roles/wallabag/templates/docker-stack.yml.j2
Marty Oehme 83613f6d86
feat(roles): Add auto updating to some roles
Miniflux, searx, shaarli and wallabag will be automatically updated by
shepherd.
2025-03-15 22:29:55 +01:00

41 lines
1.1 KiB
Django/Jinja

version: "3.7"
services:
app:
image: {{ stack_image }}:{{ wallabag_version }}
networks:
- "{{ docker_swarm_public_network_name }}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 1m
timeout: 10s
retries: 3
start_period: 1m
volumes:
- data:/var/www/wallabag/data
environment:
- SYMFONY__ENV__FOSUSER_REGISTRATION=false
{% if server_domain is not undefined and not none %}
- "SYMFONY__ENV__DOMAIN_NAME={{ (wallabag_use_https == True) | ternary('https', 'http') }}://{{ (subdomain_alias is not undefined and not none) | ternary(subdomain_alias, stack_name) }}.{{server_domain}}"
{% else %}
- SYMFONY__ENV__DOMAIN_NAME={{ (wallabag_use_https == True) | ternary('https', 'http') }}://localhost
{% endif %}
{% if wallabag_autoupdate is defined and wallabag_autoupdate %}
deploy:
labels:
- shepherd.autoupdate=true
{% endif %}
redis:
image: redis:alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 20s
timeout: 3s
volumes:
data:
networks:
"{{ docker_swarm_public_network_name }}":
external: true