[Web] Refactor docker env vars
This commit is contained in:
parent
114f5a046e
commit
2dabb4f9bc
@ -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
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user