feat(docker): add Docker configuration for frontend app
This commit is contained in:
parent
676473cfad
commit
36237874f7
6 changed files with 65 additions and 32 deletions
7
frontend/.docker/entrypoint.sh
Executable file
7
frontend/.docker/entrypoint.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
# Default values if not provided
|
||||
: ${BACKEND_HOST:=localhost}
|
||||
: ${BACKEND_PORT:=8080}
|
||||
|
||||
envsubst '$BACKEND_HOST $BACKEND_PORT' < /etc/nginx/templates/nginx.conf.template > /etc/nginx/conf.d/default.conf
|
||||
exec nginx -g 'daemon off;'
|
Reference in a new issue