mirror of
https://github.com/elisiariocouto/leggen.git
synced 2025-12-14 05:02:22 +00:00
feat: Change default database engine to SQLite, change schema.
This commit is contained in:
@@ -1,32 +1,30 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:7
|
||||
restart: "unless-stopped"
|
||||
# If you want to expose the mongodb port to the host, uncomment the following lines
|
||||
# ports:
|
||||
# - 127.0.0.1:27017:27017
|
||||
volumes:
|
||||
- "./data:/data/db"
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: "leggen"
|
||||
MONGO_INITDB_ROOT_PASSWORD: "changeme"
|
||||
|
||||
# Defaults to `sync` command.
|
||||
leggen:
|
||||
image: elisiariocouto/leggen:latest
|
||||
command: sync
|
||||
restart: "no"
|
||||
environment:
|
||||
LEGGEN_MONGO_URI: mongodb://leggen:changeme@mongo:27017/
|
||||
LEGGEN_GC_API_KEY: "changeme"
|
||||
LEGGEN_GC_API_SECRET: "changeme"
|
||||
# Uncomment the following lines if you use MongoDB
|
||||
# LEGGEN_MONGO_URI: "mongodb://leggen:changeme@mongo:27017/leggen"
|
||||
volumes:
|
||||
- "./leggen:/root/.config/leggen"
|
||||
- "./leggen:/root"
|
||||
depends_on:
|
||||
- mongo
|
||||
|
||||
nocodb:
|
||||
image: nocodb/nocodb:latest
|
||||
restart: "unless-stopped"
|
||||
volumes:
|
||||
- "./nocodb:/usr/app/data/"
|
||||
- "./leggen:/usr/leggen:ro"
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
|
||||
# Recommended: Run `leggen sync` every day.
|
||||
ofelia:
|
||||
image: mcuadros/ofelia:latest
|
||||
@@ -40,6 +38,19 @@ services:
|
||||
ofelia.job-run.leggen-sync.schedule: "0 0 3 * * *"
|
||||
ofelia.job-run.leggen-sync.container: ${COMPOSE_PROJECT_NAME}-leggen-1
|
||||
|
||||
# Optional: If you want to have a mongodb, uncomment the following lines
|
||||
# mongo:
|
||||
# image: mongo:7
|
||||
# restart: "unless-stopped"
|
||||
# # If you want to expose the mongodb port to the host, uncomment the following lines
|
||||
# # ports:
|
||||
# # - 127.0.0.1:27017:27017
|
||||
# volumes:
|
||||
# - "./data:/data/db"
|
||||
# environment:
|
||||
# MONGO_INITDB_ROOT_USERNAME: "leggen"
|
||||
# MONGO_INITDB_ROOT_PASSWORD: "changeme"
|
||||
|
||||
# Optional: If you want to have an admin interface for your mongodb, uncomment the following lines
|
||||
# mongo-express:
|
||||
# image: mongo-express
|
||||
|
||||
Reference in New Issue
Block a user