Skip to content

Commit

Permalink
env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
while1618 committed Dec 22, 2024
1 parent 8002b07 commit ff57891
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,14 @@ Login credentials:
| API_URL | URL on which API is running | http://bootstrapbugz-api:8080/v1 |
| UI_URL | URL on which UI is running | http://bootstrapbugz-ui:5173 |
| UI_PORT | Port on which you'll find UI running | 5173 |
| EXPOSED_UI_PORT | Port on which UI will be exposed when running via docker | 5174 |
| SERVER_PORT | Port on which you'll find API running | 8080 |
| EXPOSED_SERVER_PORT | Port on which API will be exposed when running via docker | 8081 |
| POSTGRES_HOST | Host on which postgres is running, used when locally starting the API | localhost |
| POSTGRES_PORT | Port on which you'll find postgres running | 5432 |
| EXPOSED_POSTGRES_PORT | Port on which postgres will be exposed when running via docker | 5433 |
| POSTGRES_DATABASE | Name of the postgres database | bootstrapbugz |
| POSTGRES_USERNAME | Postgres username | postgres |
| POSTGRES_PASSWORD | Postgres password | root |
| REDIS_HOST | Host on which redis is running, used when locally starting the API | 127.0.0.1 |
| REDIS_PORT | Port on which you'll find redis running | 6379 |
| EXPOSED_REDIS_PORT | Port on which redis will be exposed when running via docker | 6380 |
| REDIS_DATABASE | Name of the redis database | 0 |
| REDIS_PASSWORD | Redis password | root |
| MAIL_HOST | SMTP host | smtp.mailgun.org |
Expand Down
6 changes: 3 additions & 3 deletions backend/spring-boot/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
image: bootstrapbugz-api:1.0.0
build: .
ports:
- "${EXPOSED_SERVER_PORT:-8081}:${SERVER_PORT:-8080}"
- "${SERVER_PORT:-8080}:${SERVER_PORT:-8080}"
environment:
APP_NAME: ${APP_NAME:-BootstrapBugZ}
SERVER_PORT: ${SERVER_PORT:-8080}
Expand Down Expand Up @@ -41,7 +41,7 @@ services:
container_name: postgres
image: postgres:17.2-alpine
ports:
- "${EXPOSED_POSTGRES_PORT:-5433}:${POSTGRES_PORT:-5432}"
- "${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432}"
environment:
PGPORT: ${POSTGRES_PORT:-5432}
POSTGRES_DB: ${POSTGRES_DATABASE:-bootstrapbugz}
Expand All @@ -65,7 +65,7 @@ services:
container_name: redis
image: redis:7.4.1
ports:
- "${EXPOSED_REDIS_PORT:-6380}:${REDIS_PORT:-6379}"
- "${REDIS_PORT:-6379}:${REDIS_PORT:-6379}"
command: redis-server --port ${REDIS_PORT:-6379} --requirepass ${REDIS_PASSWORD:-root}
environment:
REDIS_DATABASE: ${REDIS_DATABASE:-0}
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
context: ./backend/spring-boot
dockerfile: Dockerfile
ports:
- "${EXPOSED_SERVER_PORT:-8081}:${SERVER_PORT:-8080}"
- "${SERVER_PORT:-8080}:${SERVER_PORT:-8080}"
environment:
APP_NAME: ${APP_NAME:-BootstrapBugZ}
SERVER_PORT: ${SERVER_PORT:-8080}
Expand Down Expand Up @@ -43,7 +43,7 @@ services:
container_name: postgres
image: postgres:17.2-alpine
ports:
- "${EXPOSED_POSTGRES_PORT:-5433}:${POSTGRES_PORT:-5432}"
- "${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432}"
environment:
PGPORT: ${POSTGRES_PORT:-5432}
POSTGRES_DB: ${POSTGRES_DATABASE:-bootstrapbugz}
Expand All @@ -67,7 +67,7 @@ services:
container_name: redis
image: redis:7.4.1
ports:
- "${EXPOSED_REDIS_PORT:-6380}:${REDIS_PORT:-6379}"
- "${REDIS_PORT:-6379}:${REDIS_PORT:-6379}"
command: redis-server --port ${REDIS_PORT:-6379} --requirepass ${REDIS_PASSWORD:-root}
environment:
REDIS_DATABASE: ${REDIS_DATABASE:-0}
Expand Down Expand Up @@ -100,7 +100,7 @@ services:
PUBLIC_API_URL: ${API_URL:-http://bootstrapbugz-api:8080/v1}
JWT_SECRET: ${JWT_SECRET:-secret}
ports:
- "${EXPOSED_UI_PORT:-5174}:${UI_PORT:-5173}"
- "${UI_PORT:-5173}:${UI_PORT:-5173}"
depends_on:
- bootstrapbugz-api
healthcheck:
Expand Down

0 comments on commit ff57891

Please sign in to comment.