Skip to content

Commit

Permalink
Add DB_PORT env var to .env.example.
Browse files Browse the repository at this point in the history
Signed-off-by: merobi-hub <merobi@gmail.com>
  • Loading branch information
merobi-hub committed Feb 20, 2024
1 parent 982009f commit ff2d297
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/api-load-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ readonly MARQUEZ_HOST="localhost"
readonly MARQUEZ_ADMIN_PORT=8081
readonly MARQUEZ_URL="http://${MARQUEZ_HOST}:${MARQUEZ_ADMIN_PORT}"
readonly MARQUEZ_DB="marquez-db"
readonly DB_PORT=5432
readonly POSTGRES_PORT=5432

readonly METADATA_FILE="api/load-testing/metadata.json"
readonly METADATA_STATS_QUERY=$(cat <<-END
Expand Down
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
API_PORT=5000
API_ADMIN_PORT=5001
WEB_PORT=3000
DB_PORT=5432
TAG=0.45.0-rc.1
2 changes: 1 addition & 1 deletion docker-compose.db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
image: postgres:14
container_name: marquez-db
ports:
- "${DB_PORT}:${DB_PORT}"
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ services:
ports:
- "8080:8080"
environment:
DATABASE_URL: postgres://postgres:password@db:${DB_PORT}
DATABASE_URL: postgres://postgres:password@db:${POSTGRES_PORT}
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ services:
- "db:postgres"
depends_on:
- db
ENTRYPOINT /opt/marquez/wait-for-it.sh db:${DB_PORT} -- ./entrypoint.sh
ENTRYPOINT /opt/marquez/wait-for-it.sh db:${POSTGRES_PORT} -- ./entrypoint.sh

db:
image: postgres:14
container_name: marquez-db
ports:
- "2345:2345"
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
Expand Down
2 changes: 1 addition & 1 deletion docker/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ compose_files="-f docker-compose.yml"
API_PORT=5000
API_ADMIN_PORT=5001
WEB_PORT=3000
DB_PORT=5432
POSTGRES_PORT=5432
NO_WEB="false"
NO_VOLUMES="false"
TAG="${VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion marquez.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ server:

db:
driverClass: org.postgresql.Driver
url: jdbc:postgresql://postgres:${DB_PORT}/marquez
url: jdbc:postgresql://postgres:${POSTGRES_PORT}/marquez
user: marquez
password: marquez

Expand Down

0 comments on commit ff2d297

Please sign in to comment.