fp/ansible/roles/rssapp/tasks/service.yml
CJ_Clippy 8ef71691e0
Some checks are pending
fp/our CI/CD / build (push) Waiting to run
ci / test (push) Waiting to run
use container port 3000
2025-10-07 04:12:07 -08:00

33 lines
902 B
YAML

---
- 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') }}"