From d3ded9deb2eed98549d0a98b5c1e6b6cb147453f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Poujade?= <lois.poujade@tetras-libre.fr> Date: Mon, 26 Sep 2022 10:33:42 +0200 Subject: [PATCH] Fixes from review --- .env.template | 7 +++++-- README.md | 5 ++++- docker-compose.yml | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.env.template b/.env.template index c4b0b25..dea774d 100644 --- a/.env.template +++ b/.env.template @@ -1,4 +1,7 @@ # host port -PORT= +PORT=8080 # container restart policy -RESTART= +RESTART=unless-stopped +# HTTP folder, will be served at http://localhost:$PORT/data +# use absolute path or relative path starting with ./ +HTTP_FOLDER=./www diff --git a/README.md b/README.md index d78d52e..4ea41ae 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ ## Mirador Video Annotation POC -Run `docker-compose up -d`, which will serve a mirador instance to `http://localhost:8080`. If sources files are modified, run `docker-compose up -d --build` +Copy `.env.template` to `.env`, set `$PORT` and check the other configuration variables. +Run `docker-compose up -d`, which will serve a mirador instance at `http://localhost:$PORT`. The `$HTTP_FOLDER` directory will be accessible via HTTP at `http://localhost:$PORT/data` and can be used to store manifests and theirs ressources and see them in Mirador. +If sources files are modified, run `docker-compose up -d --build` to update Mirador + diff --git a/docker-compose.yml b/docker-compose.yml index 19ab4ad..5c7b261 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,5 +6,5 @@ services: ports: - $PORT:80 volumes: - - ./www:/srv/data + - $HTTP_FOLDER:/srv/data - ./Caddyfile:/etc/caddy/Caddyfile -- GitLab