From 71741924d086cbf58f7a6df0e76e8141808b09cb Mon Sep 17 00:00:00 2001 From: Mathis Date: Mon, 13 May 2024 14:28:36 +0200 Subject: [PATCH] refactor: use environment variables for ports in docker-compose The docker-compose file has been updated to utilize environment variables for the MongoDB and MySQL ports. Instead of hard-coding the port numbers, the system now dynamically fetches port values from the .env file, which increases versatility and configurability. --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4c43cfa..9ddad9f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} ports: - - '3434:3306' + - '${MYSQL_PORT}:3306' volumes: - ./mariadb/:/var/lib/mysql/ @@ -22,7 +22,7 @@ services: env_file: - ./.env ports: - - '2727:27017' + - '${MONGO_PORT}:27017' restart: always logging: options: