Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Database Host Fix (#20)
Browse files Browse the repository at this point in the history
* Database host fix

* Database host fix
  • Loading branch information
berk76 authored Jan 27, 2024
1 parent 7734deb commit b50b11a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docker-compose/create-schema.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
USER=sysdba
PASSWORD=change-it
HOST=svjis_db
DATABASE=SVJIS_PRODUCTION

/usr/local/firebird/bin/isql -user "$USER" -password "$PASSWORD" -input '/firebird/database.sql' "localhost:$DATABASE"
/usr/local/firebird/bin/isql -user "$USER" -password "$PASSWORD" -input '/firebird/database.sql' "$HOST:$DATABASE"
rm /firebird/database.sql
echo "EXECUTE PROCEDURE SP_CREATE_COMPANY 'New Company'; COMMIT;" > /firebird/comp.sql
/usr/local/firebird/bin/isql -user "$USER" -password "$PASSWORD" -input '/firebird/comp.sql' "localhost:$DATABASE"
/usr/local/firebird/bin/isql -user "$USER" -password "$PASSWORD" -input '/firebird/comp.sql' "$HOST:$DATABASE"
rm /firebird/comp.sql
4 changes: 2 additions & 2 deletions docker-compose/svjis-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:

svjis-app:
image: berk76/svjis-app:latest
container_name: svjis_app-prod
container_name: svjis_app
restart: unless-stopped
ports:
- 8080:8080
Expand All @@ -30,7 +30,7 @@ services:

svjis-db:
image: jacobalberty/firebird:v3.0.10
container_name: svjis_db-prod
container_name: svjis_db
restart: unless-stopped
ports:
- 3050:3050
Expand Down

0 comments on commit b50b11a

Please sign in to comment.