From 11d836dd26137d22e2c12e9427292358bcc22a48 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Fri, 24 Jan 2025 20:10:32 +0100 Subject: [PATCH] Use DB_PASS for root and regular password --- docker-compose.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9e7846a..f536d46 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,13 +9,17 @@ services: - /var/log/cpolis.log:/var/log/cpolis.log depends_on: - db + environment: + DB_USER: cpolis + DB_PASS: ${DB_PASS} db: image: mariadb:latest environment: + MYSQL_ROOT_PASSWORD: ${DB_PASS} MYSQL_DATABASE: cpolis MYSQL_USER: cpolis - MYSQL_PASSWORD: ${DB_PASS} + MYSQL_PASSWORD: ${DB_PASS} ports: - "3306:3306" volumes: