mirror of
https://github.com/elisiariocouto/leggen.git
synced 2026-01-30 16:18:28 +00:00
fix(compose): Fix ofelia configuration, add sync command as the default.
This commit is contained in:
@@ -13,8 +13,10 @@ services:
|
|||||||
MONGO_INITDB_ROOT_USERNAME: "leggen"
|
MONGO_INITDB_ROOT_USERNAME: "leggen"
|
||||||
MONGO_INITDB_ROOT_PASSWORD: "changeme"
|
MONGO_INITDB_ROOT_PASSWORD: "changeme"
|
||||||
|
|
||||||
|
# Defaults to `sync` command.
|
||||||
leggen:
|
leggen:
|
||||||
image: elisiariocouto/leggen:latest
|
image: elisiariocouto/leggen:latest
|
||||||
|
command: sync
|
||||||
restart: "no"
|
restart: "no"
|
||||||
environment:
|
environment:
|
||||||
LEGGEN_MONGO_URI: mongodb://leggen:changeme@mongo:27017/
|
LEGGEN_MONGO_URI: mongodb://leggen:changeme@mongo:27017/
|
||||||
@@ -28,6 +30,7 @@ services:
|
|||||||
# Recommended: Run `leggen sync` every day.
|
# Recommended: Run `leggen sync` every day.
|
||||||
ofelia:
|
ofelia:
|
||||||
image: mcuadros/ofelia:latest
|
image: mcuadros/ofelia:latest
|
||||||
|
restart: "unless-stopped"
|
||||||
depends_on:
|
depends_on:
|
||||||
- leggen
|
- leggen
|
||||||
command: daemon --docker -f label=com.docker.compose.project=${COMPOSE_PROJECT_NAME}
|
command: daemon --docker -f label=com.docker.compose.project=${COMPOSE_PROJECT_NAME}
|
||||||
@@ -35,8 +38,7 @@ services:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
labels:
|
labels:
|
||||||
ofelia.job-run.leggen-sync.schedule: "0 0 3 * * *"
|
ofelia.job-run.leggen-sync.schedule: "0 0 3 * * *"
|
||||||
ofelia.job-run.leggen-sync.command: "sync"
|
ofelia.job-run.leggen-sync.container: ${COMPOSE_PROJECT_NAME}-leggen-1
|
||||||
ofelia.job-run.leggen-sync.container: "leggen"
|
|
||||||
|
|
||||||
# Optional: If you want to have an admin interface for your mongodb, uncomment the following lines
|
# Optional: If you want to have an admin interface for your mongodb, uncomment the following lines
|
||||||
# mongo-express:
|
# mongo-express:
|
||||||
|
|||||||
Reference in New Issue
Block a user