Use a .env file to drive states of the stack, i.e. development or not.

Ignore the .env file.
This commit is contained in:
Daniel Ceregatti 2023-09-11 14:41:27 -07:00
parent 4b0efda369
commit 4c3823d9bc
2 changed files with 5 additions and 6 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.idea .idea
*.iml *.iml
.env
node_modules/ node_modules/

View file

@ -33,9 +33,8 @@ services:
- "8001:8001/tcp" - "8001:8001/tcp"
- "8000:8000/tcp" - "8000:8000/tcp"
restart: always restart: always
environment: env_file:
# The use of the Steam API in the (very incomplete) web app requires a key. Get yours here: https://steamcommunity.com/dev/apikey - .env
- STEAMAPIKEY=YOUR_STEAM_API_KEY_HERE
server: server:
build: server build: server
@ -63,9 +62,6 @@ services:
# - 27016:27016/udp # - 27016:27016/udp
# Always restart, unless stopped # Always restart, unless stopped
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 # Allows attaching a debugger from the host
# cap_add: # cap_add:
# - SYS_PTRACE # - SYS_PTRACE
@ -75,3 +71,5 @@ services:
# core: # core:
# soft: -1 # soft: -1
# hard: -1 # hard: -1
env_file:
- .env