Fix syntax error in docker-compose.yml

This commit is contained in:
Joakim Hellsén 2026-07-18 04:50:52 +02:00
commit 5ead9742e7
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk

View file

@ -2,19 +2,29 @@ services:
discord-rss-bot: discord-rss-bot:
image: ghcr.io/thelovinator1/discord-rss-bot:latest image: ghcr.io/thelovinator1/discord-rss-bot:latest
container_name: discord-rss-bot container_name: discord-rss-bot
expose:
- "5000:5000"
ports: ports:
- "5000:5000" - "5000:5000"
volumes: volumes:
# - /Docker/Bots/discord-rss-bot:/home/botuser/.local/share/discord_rss_bot/ # To use a host directory instead of a named volume:
# Linux: - /Docker/Bots/discord-rss-bot:/home/botuser/.local/share/discord_rss_bot/
# Windows: - C:\Docker\Bots\discord-rss-bot:/home/botuser/.local/share/discord_rss_bot/
- data:/home/botuser/.local/share/discord_rss_bot/ - data:/home/botuser/.local/share/discord_rss_bot/
healthcheck: healthcheck:
test: [ "CMD", "uv", "run", "./discord_rss_bot/healthcheck.py" ] test: [ "CMD", "uv", "run", "./discord_rss_bot/healthcheck.py" ]
interval: 1m interval: 1m
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 5s start_period: 5s
# Keep logs in a rotating file so they don't fill up the disk
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
restart: unless-stopped restart: unless-stopped
volumes: volumes: