[Web] Refactor docker env vars

This commit is contained in:
orosmatthew 2024-03-11 13:50:02 -04:00
parent 114f5a046e
commit 2dabb4f9bc
2 changed files with 9 additions and 6 deletions

View File

@ -1 +1,4 @@
DATABASE_URL=postgresql://bwcontest:password@127.0.0.1:5432/bwcontest
DATABASE_URL=postgresql://bwcontest:password@127.0.0.1:5432/bwcontest
GIT_PORT=7006
WEB_PORT=3000
ORIGIN=http://127.0.0.1

View File

@ -14,12 +14,12 @@ services:
context: ../
dockerfile: ./web/Dockerfile
ports:
- 3000:3000
- 7006:7006
- ${WEB_PORT}:${WEB_PORT}
- ${GIT_PORT}:${GIT_PORT}
environment:
- DATABASE_URL=postgresql://bwcontest:password@db:5432/bwcontest
- GIT_PORT=7006
- ORIGIN=http://127.0.0.1:3000
- DATABASE_URL=${DATABASE_URL}
- GIT_PORT=${GIT_PORT}
- ORIGIN=${ORIGIN}:${WEB_PORT}
volumes:
- ./repo:/app/repo
depends_on: