Use DB_PASS for root and regular password

This commit is contained in:
Jason Streifling 2025-01-24 20:10:32 +01:00
parent 57953b2cfd
commit 11d836dd26

View File

@ -9,13 +9,17 @@ services:
- /var/log/cpolis.log:/var/log/cpolis.log - /var/log/cpolis.log:/var/log/cpolis.log
depends_on: depends_on:
- db - db
environment:
DB_USER: cpolis
DB_PASS: ${DB_PASS}
db: db:
image: mariadb:latest image: mariadb:latest
environment: environment:
MYSQL_ROOT_PASSWORD: ${DB_PASS}
MYSQL_DATABASE: cpolis MYSQL_DATABASE: cpolis
MYSQL_USER: cpolis MYSQL_USER: cpolis
MYSQL_PASSWORD: ${DB_PASS} MYSQL_PASSWORD: ${DB_PASS}
ports: ports:
- "3306:3306" - "3306:3306"
volumes: volumes: