[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: ../ context: ../
dockerfile: ./web/Dockerfile dockerfile: ./web/Dockerfile
ports: ports:
- 3000:3000 - ${WEB_PORT}:${WEB_PORT}
- 7006:7006 - ${GIT_PORT}:${GIT_PORT}
environment: environment:
- DATABASE_URL=postgresql://bwcontest:password@db:5432/bwcontest - DATABASE_URL=${DATABASE_URL}
- GIT_PORT=7006 - GIT_PORT=${GIT_PORT}
- ORIGIN=http://127.0.0.1:3000 - ORIGIN=${ORIGIN}:${WEB_PORT}
volumes: volumes:
- ./repo:/app/repo - ./repo:/app/repo
depends_on: depends_on: