From 75f55293da86c9ca1a54af9ac08d838539eb948d Mon Sep 17 00:00:00 2001 From: Oleh Astappiev <4512729+astappiev@users.noreply.github.com> Date: Sat, 19 Apr 2025 20:37:24 +0200 Subject: [PATCH] feat: add some extra notes to docker environments --- README.md | 12 ++++++------ example-docker/.env | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 286d94b4c..77961d303 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,9 @@ services: - PUID=1000 - PGID=1000 - TZ=Etc/UTC - - DATABASE_URL=jdbc:mariadb://mariadb:3306/booklore - - DATABASE_USERNAME=booklore - - DATABASE_PASSWORD=your_secure_password # Use a strong password; must match the one in the mariadb service + - DATABASE_URL=jdbc:mariadb://mariadb:3306/booklore # Only modify this if you're familiar with JDBC and your database setup + - DATABASE_USERNAME=booklore # Must match MYSQL_USER defined in the mariadb container + - DATABASE_PASSWORD=your_secure_password # Use a strong password; must match MYSQL_PASSWORD defined in the mariadb container depends_on: mariadb: condition: service_healthy @@ -68,10 +68,10 @@ services: - PUID=1000 - PGID=1000 - TZ=Etc/UTC - - MYSQL_ROOT_PASSWORD=your_secure_password # Use a strong password + - MYSQL_ROOT_PASSWORD=super_secure_password # Use a strong password for the database's root user, should be different from MYSQL_PASSWORD - MYSQL_DATABASE=booklore - - MYSQL_USER=booklore - - MYSQL_PASSWORD=your_secure_password # Use a strong password; must match the one in the booklore service + - MYSQL_USER=booklore # Must match DATABASE_USERNAME defined in the booklore container + - MYSQL_PASSWORD=your_secure_password # Use a strong password; must match DATABASE_PASSWORD defined in the booklore container volumes: - /your/local/path/to/mariadb/config:/config restart: unless-stopped diff --git a/example-docker/.env b/example-docker/.env index b5539bfa6..0531cebff 100644 --- a/example-docker/.env +++ b/example-docker/.env @@ -12,7 +12,7 @@ TZ=Etc/UTC # Change this to your timezone (e.g., America/New_York, Asia/Kolk # Database Credentials (Replace with a secure password) # This password is used by MariaDB. Make sure to keep it secure. -MYSQL_ROOT_PASSWORD=your_secure_password +MYSQL_ROOT_PASSWORD=super_secure_password MYSQL_DATABASE=booklore MYSQL_USER=booklore MYSQL_PASSWORD=your_secure_password