From 23d1f66670681975529155b73062d616801cb0c3 Mon Sep 17 00:00:00 2001 From: Alexis Koralewski Date: Thu, 18 Mar 2021 12:34:59 +0100 Subject: [PATCH] Set specific environment variables for Docker without using variables from .env file --- docker/docker-compose.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 8afe2b5..ee2f1d1 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -27,9 +27,13 @@ services: # stdin_open is the -i option in docker exec stdin_open: true environment: - - "WITH_DOCKER=${WITH_DOCKER:-y}" + # environment variables only for Docker + - WITH_DOCKER=y + - MYSQL_ROOT_LOGIN=root + - MYSQL_TCP_PORT=3306 + # environment variables available for both Docker usage and non Docker usage - "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}" - - "MYSQL_TCP_PORT=${MYSQL_TCP_PORT:-3306}" + #- "IP_PYROS_USER=${IP_PYROS_USER:-172.28.1.5}" volumes: - ..:/home/pyros_user/app -- libgit2 0.21.2