Commit 23d1f66670681975529155b73062d616801cb0c3

Authored by Alexis Koralewski
1 parent 1477278b
Exists in dev

Set specific environment variables for Docker without using variables from .env file

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
docker/docker-compose.yml
... ... @@ -27,9 +27,13 @@ services:
27 27 # stdin_open is the -i option in docker exec
28 28 stdin_open: true
29 29 environment:
30   - - "WITH_DOCKER=${WITH_DOCKER:-y}"
  30 + # environment variables only for Docker
  31 + - WITH_DOCKER=y
  32 + - MYSQL_ROOT_LOGIN=root
  33 + - MYSQL_TCP_PORT=3306
  34 + # environment variables available for both Docker usage and non Docker usage
31 35 - "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}"
32   - - "MYSQL_TCP_PORT=${MYSQL_TCP_PORT:-3306}"
  36 +
33 37 #- "IP_PYROS_USER=${IP_PYROS_USER:-172.28.1.5}"
34 38 volumes:
35 39 - ..:/home/pyros_user/app
... ...