mirror of
https://github.com/elisiariocouto/leggen.git
synced 2025-12-14 12:02:19 +00:00
feat: Add periodic sync, handled by ofelia.
This commit is contained in:
@@ -25,7 +25,20 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
- mongo
|
||||||
|
|
||||||
# If you want to have an admin interface for your mongodb, uncomment the following lines
|
# Recommended: Run `leggen sync` every day.
|
||||||
|
ofelia:
|
||||||
|
image: mcuadros/ofelia:latest
|
||||||
|
depends_on:
|
||||||
|
- leggen
|
||||||
|
command: daemon --docker -f label=com.docker.compose.project=${COMPOSE_PROJECT_NAME}
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
labels:
|
||||||
|
ofelia.job-run.leggen-sync.schedule: "0 0 3 * * *"
|
||||||
|
ofelia.job-run.leggen-sync.command: "sync"
|
||||||
|
ofelia.job-run.leggen-sync.container: "leggen"
|
||||||
|
|
||||||
|
# Optional: If you want to have an admin interface for your mongodb, uncomment the following lines
|
||||||
# mongo-express:
|
# mongo-express:
|
||||||
# image: mongo-express
|
# image: mongo-express
|
||||||
# restart: "unless-stopped"
|
# restart: "unless-stopped"
|
||||||
|
|||||||
Reference in New Issue
Block a user