From 16e7991a3d165bbfc726efb5c1965fc623df0068 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Mon, 19 Feb 2024 17:46:13 -0500 Subject: [PATCH] docs: add a note for Docker install and SECRET_KEY Refs #1618 --- docs/deploy/docker.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/deploy/docker.md b/docs/deploy/docker.md index 1ae44c33..51df4595 100644 --- a/docs/deploy/docker.md +++ b/docs/deploy/docker.md @@ -15,7 +15,7 @@ services: app: # Check https://hub.docker.com/r/umap/umap/tags to find the latest version - image: umap/umap:1.3.7 + image: umap/umap:2.0.2 ports: # modify the external port (8001, on the left) if desired, but make sure it matches SITE_URL, below - "8001:8000" @@ -35,4 +35,10 @@ services: volumes: umap_userdata: umap_db: -``` \ No newline at end of file +``` + +Note that you’ll have to set a [`SECRET_KEY`](https://docs.djangoproject.com/en/5.0/ref/settings/#secret-key) environment variable that must be secret and unique. One way to generate it is through the `secrets` module from Python: + +```sh +$ python3 -c 'import secrets; print(secrets.token_hex(100))' +```