Add variables to .env to configure the data- and config directory

That adds an way of having the volumes configured easily.
This commit is contained in:
Klaas Freitag
2024-08-09 16:42:19 +02:00
committed by mmattel
parent f2c5077289
commit c72168b348
3 changed files with 10 additions and 2 deletions

View File

@@ -58,6 +58,10 @@ LOG_LEVEL=
# The default log can be read by machines.
# Set this to true to make the log human readable.
# LOG_PRETTY=true
# Define the oCIS storage location. Set the pathes for config and data to a local path
# Note that this can grow big. Leaving it unset stores data in docker internal volumes.
# OCIS_CONFIG_DIR=/your/local/ocis/config
# OCIS_DATA_DIR=/your/local/ocis/data
# S3 Storage configuration - optional
# Infinite Scale supports S3 storage as primary storage.

View File

@@ -55,8 +55,8 @@ services:
- ./config/ocis/app-registry.yaml:/etc/ocis/app-registry.yaml
- ./config/ocis/csp.yaml:/etc/ocis/csp.yaml
- ./config/ocis/banned-password-list.txt:/etc/ocis/banned-password-list.txt
- ocis-config:/etc/ocis
- ocis-data:/var/lib/ocis
- ${OCIS_CONFIG_DIR:-ocis-config}:/etc/ocis
- ${OCIS_DATA_DIR:-ocis-data}:/var/lib/ocis
labels:
- "traefik.enable=true"
- "traefik.http.routers.ocis.entrypoints=https"

View File

@@ -129,6 +129,10 @@ See also [example server setup]({{< ref "preparing_server" >}})
# The default log can be read by machines.
# Set this to true to make the log human readable
# LOG_PRETTY=true
# Define the oCIS storage location. Set the pathes for config and data to a local path
# Note that this can grow big. Leaving it unset stores data in docker internal volumes.
# OCIS_CONFIG_DIR=/your/local/ocis/config
# OCIS_DATA_DIR=/your/local/ocis/data
# S3 Storage configuration
#