From bb573c603ac9b2cdea9bbc0210502e9527fdc05f Mon Sep 17 00:00:00 2001 From: Nandor Magyar Date: Fri, 24 Oct 2025 15:08:41 +0200 Subject: [PATCH] fix minor port, docs inconsistencies Signed-off-by: Nandor Magyar --- .env.docker.example | 13 +++++++++++++ .env.example | 8 ++------ .gitignore | 1 + README.md | 4 ++-- 4 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 .env.docker.example diff --git a/.env.docker.example b/.env.docker.example new file mode 100644 index 0000000..c85b0f8 --- /dev/null +++ b/.env.docker.example @@ -0,0 +1,13 @@ +# Postgres configuration +POSTGRES_DB=cactoide_database +POSTGRES_USER=cactoide +POSTGRES_PASSWORD=cactoide_password +POSTGRES_PORT=5432 + +# Application configuration +DATABASE_URL="postgres://cactoide:cactoide_password@postgres:5432/cactoide_database" +APP_VERSION=latest +PORT=5173 +HOSTNAME=0.0.0.0 + +PUBLIC_LANDING_INFO=true diff --git a/.env.example b/.env.example index 11996ca..220a21c 100644 --- a/.env.example +++ b/.env.example @@ -4,14 +4,10 @@ POSTGRES_USER=cactoide POSTGRES_PASSWORD=cactoide_password POSTGRES_PORT=5432 -# localhost -DATABASE_URL="postgres://cactoide:cactoide_password@localhost:5432/cactoide_database" -# docker -# DATABASE_URL="postgres://cactoide:cactoide_password@postgres:5432/cactoide_database" - # Application configuration +DATABASE_URL="postgres://cactoide:cactoide_password@localhost:5432/cactoide_database" APP_VERSION=latest -PORT=3000 +PORT=5173 HOSTNAME=0.0.0.0 PUBLIC_LANDING_INFO=true diff --git a/.gitignore b/.gitignore index 3b462cb..a2f7b79 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ Thumbs.db .env.* !.env.example !.env.test +!.env.docker.example # Vite vite.config.js.timestamp-* diff --git a/README.md b/README.md index fdcc119..5f79a7a 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Uses the [`docker-compose.yml`](docker-compose.yml) file to setup the applicatio ```bash git clone https://github.com/polaroi8d/cactoide/ cd cactoide -cp env.example .env +cp .env.docker.example .env docker compose up -d ``` @@ -46,7 +46,7 @@ docker compose up -d ```bash git clone https://github.com/polaroi8d/cactoide/ cd cactoide -cp env.example .env +cp .env.example .env make db-only npm run dev -- --open ```