Skip to content

Commit

Permalink
Change .env for local docker compose to use only one port
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Oct 19, 2024
1 parent fabe8a5 commit a199fec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .env-backend-local
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
BACKEND_URL=http://localhost:8080
FRONTEND_URL=http://localhost:3000
FRONTEND_HOST=localhost
FRONTEND_PORT=3000
BACKEND_PATH=/backend

[email protected]
TZ=America/Sao_Paulo

BACKEND_URL=http://${FRONTEND_HOST}:${FRONTEND_PORT}${BACKEND_PATH}
FRONTEND_URL=http://${FRONTEND_HOST}:${FRONTEND_PORT}

DB_DIALECT=postgres
DB_HOST=postgres
DB_PORT=5432
Expand Down
10 changes: 8 additions & 2 deletions .env-frontend-local
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
BACKEND_HOST=localhost
BACKEND_PORT=8080
FRONTEND_HOST=localhost
FRONTEND_PORT=3000
BACKEND_PATH=/backend

BACKEND_HOST=${FRONTEND_HOST}
BACKEND_PROTOCOL=http
BACKEND_PORT=${FRONTEND_PORT}

[email protected]

0 comments on commit a199fec

Please sign in to comment.