From 4c3823d9bc09b04f8a57e71247e9e543d53588f7 Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Mon, 11 Sep 2023 14:41:27 -0700 Subject: [PATCH] Use a .env file to drive states of the stack, i.e. development or not. Ignore the .env file. --- .gitignore | 1 + docker-compose.yml | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index cf9cb08..0d7d73e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea *.iml +.env node_modules/ diff --git a/docker-compose.yml b/docker-compose.yml index a985ba8..34dee05 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,9 +33,8 @@ services: - "8001:8001/tcp" - "8000:8000/tcp" restart: always - environment: - # The use of the Steam API in the (very incomplete) web app requires a key. Get yours here: https://steamcommunity.com/dev/apikey - - STEAMAPIKEY=YOUR_STEAM_API_KEY_HERE + env_file: + - .env server: build: server @@ -63,9 +62,6 @@ services: # - 27016:27016/udp # Always restart, unless stopped restart: unless-stopped - environment: - # To prevent the server from starting to allow for development, set this to 1 - - DEVELOPMENT=0 # Allows attaching a debugger from the host # cap_add: # - SYS_PTRACE @@ -75,3 +71,5 @@ services: # core: # soft: -1 # hard: -1 + env_file: + - .env \ No newline at end of file