diff --git a/web/.env.example b/web/.env.example index d3e8a5f..035ed2f 100644 --- a/web/.env.example +++ b/web/.env.example @@ -1 +1,4 @@ -DATABASE_URL=postgresql://bwcontest:password@127.0.0.1:5432/bwcontest \ No newline at end of file +DATABASE_URL=postgresql://bwcontest:password@127.0.0.1:5432/bwcontest +GIT_PORT=7006 +WEB_PORT=3000 +ORIGIN=http://127.0.0.1 \ No newline at end of file diff --git a/web/docker-compose.yml b/web/docker-compose.yml index c68a7cd..440d3da 100644 --- a/web/docker-compose.yml +++ b/web/docker-compose.yml @@ -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: