Copy `.env.template` to `.env` and change variables to suit your need (you can skip the edit step)
Copy `.env.template` to `.env` and change variables to suit your need.
You **MUST** set at least the `ANNOTOT_SECRET_KEY_BASE` to a random string, the rest is preconfigured for a local development environment.
For production, one **also** need to setup :
+`COMPOSE_FILE` should be at least `docker-compose.yml:annotot.yml`
+`ANNOTOT_ENV` should be `production`
+`ANNOTOT_HOST` should be the public hostname of your annotot server
Run `docker-compose up -d`, which will serve a mirador instance at `http://localhost:$PORT` (default port is 8080).
Run `docker-compose up -d`, which will serve a mirador instance at `http://localhost:$PORT` (default port is 8080).
...
@@ -16,4 +24,3 @@ Follow the previous instructions if you want to access ressources from `$HTTP_FO
...
@@ -16,4 +24,3 @@ Follow the previous instructions if you want to access ressources from `$HTTP_FO
Edit `.env` (copy it from `.env.template` if needed), set `COMPOSE_FILE=docker-compose.yml:devserver.yml` and adapt `DEV_*` variables to your needs.
Edit `.env` (copy it from `.env.template` if needed), set `COMPOSE_FILE=docker-compose.yml:devserver.yml` and adapt `DEV_*` variables to your needs.
Run `docker-compose up -d --build devserver`, which will serve a mirador instance at `http://localhost:$DEV_PORT` (default port is 9000) with live rebuild/reload enabled on each `src/` and `public/` files modifications.
Run `docker-compose up -d --build devserver`, which will serve a mirador instance at `http://localhost:$DEV_PORT` (default port is 9000) with live rebuild/reload enabled on each `src/` and `public/` files modifications.