From aaca099bc3dd356aa8b01bd4196f35fdc1e8da5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Johanson?= Date: Fri, 23 Aug 2024 11:48:23 +0200 Subject: [PATCH] Docker Fixes (#5) --- .env.default | 4 +++- docker-compose-prod.yml | 2 +- docker-compose.yml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.env.default b/.env.default index 531584cf..fc42e47d 100644 --- a/.env.default +++ b/.env.default @@ -1 +1,3 @@ -REDIS_PASSWORD=CHANGE_ME \ No newline at end of file +POSTGRES_USER=excalidraw-user +POSTGRES_PASSWORD= +POSTGRES_DB=excalidraw-dev \ No newline at end of file diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index b2623f4e..c6610a8e 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -23,7 +23,7 @@ services: - "5011:8080" restart: always environment: - STORAGE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB} + STORAGE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-excalidraw-prod} excalidraw-room: image: excalidraw/excalidraw-room diff --git a/docker-compose.yml b/docker-compose.yml index 83ae88c8..1d4ea89e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,7 +26,7 @@ services: ports: - "8080:8080" environment: - STORAGE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB} + STORAGE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-excalidraw-dev} excalidraw-room: image: excalidraw/excalidraw-room