fix: configure docker compose and fastify cors with .env file for local and production environment

This commit is contained in:
theoleuthardt 2025-02-24 13:39:07 +01:00
parent 4943846db7
commit d75f0c4626
5 changed files with 23 additions and 13 deletions

7
.env Normal file
View file

@ -0,0 +1,7 @@
####### LOCAL DEVELOPMENT #######
NODE_ENV=development
HOSTNAME=0.0.0.0
FRONTEND_PORT=3000
BACKEND_PORT=4000
BACKEND=http://localhost:4000
CORS_ALLOWED_ORIGIN=http://localhost:3000