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

Database Host Fix #20

Merged
merged 2 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading