27 lines
696 B
YAML
Executable File
27 lines
696 B
YAML
Executable File
services:
|
|
ofelia:
|
|
image: mcuadros/ofelia:latest
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- web
|
|
command: daemon --docker
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
web:
|
|
build:
|
|
context: app
|
|
target: builder
|
|
restart: unless-stopped
|
|
stop_signal: SIGINT
|
|
ports:
|
|
- '8001:8000'
|
|
volumes:
|
|
- ./db:/reddit/db
|
|
- ./media:/reddit/media
|
|
labels:
|
|
ofelia.enabled: "true"
|
|
ofelia.job-exec.scrape.schedule: "@every 60m"
|
|
ofelia.job-exec.scrape.command: "python3 /app/scrape_posts.py"
|
|
ofelia.job-exec.clean.schedule: "@every 24h"
|
|
ofelia.job-exec.clean.command: "python3 /app/delete_posts.py"
|