docs(docker): move password update docs

This commit is contained in:
tigattack
2025-09-24 21:00:19 +01:00
parent 783f8d73fe
commit b7ce2a3f54

View File

@@ -20,15 +20,22 @@ Version tags are also available (e.g. `1.2.3`) for both of these images.
### Production Deployment ### Production Deployment
1. Download the [Docker Compose file](docker-compose.yml) 1. Download the [Docker Compose file](docker-compose.yml)
2. Change the default database password in the file:
2. Configure environment variables (see [Configuration](#configuration) section) ```yaml
environment:
3. Start the application: 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 ```bash
docker compose up -d docker compose up -d
``` ```
6. Access the application at `http://localhost:3000`
4. Access the application at `http://localhost:3000`
## Configuration ## 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_HOST`: Backend service hostname (default: `backend`)
- `BACKEND_PORT`: Backend service port (default: 3001) - `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 # Development