From 444d913d850376b9f7f328372948c98acc72bb71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Mon, 5 Jun 2023 17:42:08 +0200 Subject: [PATCH] Tweak Compose file so that it works out of the box Fix umap image reference to match the one pushed on Docker Hub. Also change port to an env var with a default value, so that it works out of the box but can also be easily changed to another port if needed. --- docker-compose.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6e8f4201..55b65945 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,7 @@ version: '3' + services: + db: image: postgis/postgis:14-3.3-alpine environment: @@ -8,9 +10,9 @@ services: - db:/var/lib/postgresql/data app: - image: umap:1.3.0 + image: umap/umap:1.3.2 ports: - - "8001:8000" + - "${PORT-8000}:8000" environment: - DATABASE_URL=postgis://postgres@db/postgres - SECRET_KEY=some-long-and-weirdly-unrandom-secret-key