--- - name: Deploy rssapp service to Docker Swarm community.docker.docker_swarm_service: name: rssapp image: gitea.futureporn.net/futureporn/rssapp:latest labels: net.futureporn.service: "rssapp" healthcheck: test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/health"] interval: 1m timeout: 10s retries: 3 start_period: 15s restart_config: condition: on-failure delay: 5s max_attempts: 3 window: 60s publish: - published_port: 9096 target_port: 3000 protocol: tcp mode: ingress env: APIFY_TOKEN: "{{ lookup('dotenv', 'RSSAPP_APIFY_TOKEN', file='../../../../.env.production') }}" ORIGIN: "{{ lookup('dotenv', 'RSSAPP_ORIGIN', file='../../../../.env.production') }}" WHITELIST: "{{ lookup('dotenv', 'RSSAPP_WHITELIST', file='../../../../.env.production') }}"