services: archivum: image: archivum:latest build: context: .. dockerfile: docker/Dockerfile container_name: archivum restart: unless-stopped ports: - "${HOST_PORT:-8080}:4000" environment: DOCKER_PATH: /config UI_DIR: /srv/archivum/ui PUID: ${PUID:-1000} PGID: ${PGID:-1000} TZ: ${TZ:-Europe/Stockholm} volumes: # DOCKER_PATH in .env is the base directory on the HOST. # Example .env: # DOCKER_PATH=C:\Repo\AW\Archivum\docker # Results in: # C:\Repo\AW\Archivum\docker\config → /config (config.json lives here) # C:\Repo\AW\Archivum\docker\data → /data (wiki/ and db/ live here) # # If DOCKER_PATH is not set, falls back to ./local relative to this file. - ${DOCKER_PATH:-./local}/config:/config - ${DOCKER_PATH:-./local}/data:/data