diff --git a/.env.template b/.env.template index c4b0b2598328c2b78bf1688083a5345386608f15..dea774d3092bfa2afbef908eaad4577b241c4f49 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 d78d52eddba2ef91042c98e7eae0578930c32341..4ea41ae44dc6375e67d82dda4049165b7b9a9b19 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 19ab4ade8027ebd6450db645ad80e2c21186eb8a..5c7b261988e82552f59d3f620b308ae8ffc49fd9 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