Skip to content

Commit

Permalink
fix setup script and docker compose port
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkTNO committed Sep 23, 2024
1 parent 560c709 commit ec4c93a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
RABBITMQ_VIRTUALHOST: omotes

POSTGRES_HOST: rest_postgres_db
POSTGRES_PORT: 7432
POSTGRES_PORT: 5432
POSTGRES_DATABASE: omotes_rest
POSTGRES_USERNAME: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
$DOCKER_COMPOSE -f ./docker-compose.yml down rest_postgres_db
$DOCKER_COMPOSE -f ./docker-compose.yml up -d --wait rest_postgres_db

$DOCKER_COMPOSE -f ./docker-compose.yml exec rest_postgres_db psql -d omotes_rest -v PG_USERNAME=POSTGRES_USERNAME -v PG_PASSWORD=POSTGRES_PASSWORD -v PG_DB=omotes_rest -f /setup/init.sql
$DOCKER_COMPOSE -f ./docker-compose.yml exec rest_postgres_db psql -d omotes_rest -v PG_USERNAME=$POSTGRES_USERNAME -v PG_PASSWORD=$POSTGRES_PASSWORD -v PG_DB=omotes_rest -f /setup/init.sql

0 comments on commit ec4c93a

Please sign in to comment.