From b7ce2a3f54df0f77462a059517c01b2159849d43 Mon Sep 17 00:00:00 2001 From: tigattack <10629864+tigattack@users.noreply.github.com> Date: Wed, 24 Sep 2025 21:00:19 +0100 Subject: [PATCH] docs(docker): move password update docs --- docker/README.md | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/docker/README.md b/docker/README.md index 9cc411a..4082f7e 100644 --- a/docker/README.md +++ b/docker/README.md @@ -20,15 +20,22 @@ Version tags are also available (e.g. `1.2.3`) for both of these images. ### Production Deployment 1. Download the [Docker Compose file](docker-compose.yml) - -2. Configure environment variables (see [Configuration](#configuration) section) - -3. Start the application: +2. Change the default database password in the file: + ```yaml + environment: + POSTGRES_PASSWORD: YOUR_SECURE_PASSWORD_HERE + ``` +3. Update the corresponding `DATABASE_URL` in the backend service: + ```yaml + environment: + DATABASE_URL: postgresql://patchmon_user:YOUR_SECURE_PASSWORD_HERE@database:5432/patchmon_db + ``` +4. Configure environment variables (see [Configuration](#configuration) section) +5. Start the application: ```bash docker compose up -d ``` - -4. Access the application at `http://localhost:3000` +6. Access the application at `http://localhost:3000` ## Configuration @@ -62,22 +69,6 @@ Version tags are also available (e.g. `1.2.3`) for both of these images. - `BACKEND_HOST`: Backend service hostname (default: `backend`) - `BACKEND_PORT`: Backend service port (default: 3001) -### Security Configuration - -**⚠️ IMPORTANT**: Before deploying to production, you MUST: - -1. Change the default database password in `docker-compose.yml`: - ```yaml - environment: - POSTGRES_PASSWORD: YOUR_SECURE_PASSWORD_HERE - ``` - -2. Update the corresponding `DATABASE_URL` in the backend service: - ```yaml - environment: - DATABASE_URL: postgresql://patchmon_user:YOUR_SECURE_PASSWORD_HERE@database:5432/patchmon_db - ``` - --- # Development