diff --git a/docker-compose.yml b/docker-compose.yml index 444ff451be..d9fd325bee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,4 @@ services: - app: image: daschswiss/dsp-app:v11.11.0 ports: @@ -69,6 +68,7 @@ services: volumes: - ./sipi/images:/opt/images:delegated - ./sipi/tmp-dsp-ingest:/opt/temp:delegated + - ingest-db:/opt/db:delegated networks: - knora-net environment: @@ -82,7 +82,8 @@ services: - JWT_SECRET=UP 4888, nice 4-8-4 steam engine - SIPI_USE_LOCAL_DEV=false - ALLOW_ERASE_PROJECTS=true -# - JWT_DISABLE_AUTH=true # Uncomment this line if you want to disable authentication for the ingest service + - DB_JDBC_URL=jdbc:sqlite:/opt/db/ingest.sqlite + # - JWT_DISABLE_AUTH=true # Uncomment this line if you want to disable authentication for the ingest service deploy: resources: limits: @@ -130,3 +131,4 @@ networks: volumes: db-home: db-import: + ingest-db: diff --git a/integration/src/test/scala/org/knora/webapi/testcontainers/DspIngestTestContainer.scala b/integration/src/test/scala/org/knora/webapi/testcontainers/DspIngestTestContainer.scala index 436fdb5f9a..1c9101891c 100644 --- a/integration/src/test/scala/org/knora/webapi/testcontainers/DspIngestTestContainer.scala +++ b/integration/src/test/scala/org/knora/webapi/testcontainers/DspIngestTestContainer.scala @@ -33,6 +33,7 @@ object DspIngestTestContainer { .withEnv("JWT_SECRET", "UP 4888, nice 4-8-4 steam engine") .withEnv("SIPI_USE_LOCAL_DEV", "false") .withEnv("JWT_DISABLE_AUTH", "true") + .withEnv("DB_JDBC_URL", "jdbc:sqlite:/tmp/ingest.sqlite") .withFileSystemBind(imagesVolume.hostPath, assetDir, BindMode.READ_WRITE) }