Files
sbrs/docker-compose.yml

35 lines
936 B
YAML

services:
sbrs:
build:
context: .
dockerfile: ./docker/Dockerfile
container_name: sbrs
restart: unless-stopped
volumes:
# Mount the directory with original `template.json` file.
- ./config:/config
# Mount the directory for the downloaded rule files.
- ./rules:/rules
environment:
# Timezone for logs and cron.
- TZ=Europe/Moscow
# Cron schedule. Default is 2:10 AM daily.
- CRON_SCHEDULE="10 2 * * *"
# User/Group IDs to avoid permission issues on volumes.
- PUID=1000
- PGID=1000
# --- URL REWRITING (REQUIRED) ---
# The domain of your server that will host the rules.
- DOMAIN=my.server.com
# The path on your server where the rules are accessible.
- RULE_PATH=rules
healthcheck:
test: ["CMD", "pgrep", "crond"]
interval: 1m
timeout: 10s
retries: 3
start_period: 10s