From a9d3143a8e0bdb5b57a44257bf67a01ca008a018 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 13 Sep 2026 15:15:20 -0400 Subject: [PATCH] Fix variables --- docker-compose.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6230b8e..eca0abe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,12 +34,11 @@ services: ports: - "5000:5000" environment: - - DB_HOST=mariadb - - DB_PORT=3306 - - DB_NAME=videodetect - - DB_USER=videodetect + - DB_HOST=${DB_HOST:-mariadb} + - DB_PORT=${DB_PORT:-3306} + - DB_NAME=${DB_NAME:-videodetect} + - DB_USER=${DB_USER:-videodetect} - DB_PASSWORD=${DB_PASSWORD:-changeme_videodetect} - - FLASK_ENV=production volumes: - ./ui:/app - nas_input:/data/input:ro @@ -63,12 +62,11 @@ services: ports: - "3000:3000" environment: - - DB_HOST=mariadb - - DB_PORT=3306 - - DB_NAME=videodetect - - DB_USER=videodetect + - DB_HOST=${DB_HOST:-mariadb} + - DB_PORT=${DB_PORT:-3306} + - DB_NAME=${DB_NAME:-videodetect} + - DB_USER=${DB_USER:-videodetect} - DB_PASSWORD=${DB_PASSWORD:-changeme_videodetect} - - DANCER_ENVIRONMENT=production volumes: - ./api:/app networks: