Fix syntax error in docker-compose.yml
This commit is contained in:
parent
46d84ed308
commit
5ead9742e7
1 changed files with 13 additions and 3 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue