Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docker-compose.yml to create a firebird server #7

Merged
merged 1 commit into from
Aug 1, 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: 5 additions & 0 deletions src/Sample/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
To try this sample that demonstrates the use of DbUp for Firebird you can install docker and run `docker compose up` from a terminal in this folder.

After that you can run the sample project and notice the scripts are run against the fbsample.fdb database

The Firebird server uses the latest jacobalberty/firebird image from Dockerhub. At the time of writing the latest image uses the v4.0.1 version of the firebird server
6 changes: 3 additions & 3 deletions src/Sample/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ConnectionStrings": {
"SampleFirebird": "User=SOMEUSER;Password=SOMEPWD;Database=c:\\somedb.fdb;DataSource=SOMESERVERNAME;Port=SOMEPORT;Dialect=3;Charset=ISO8859_1;ServerType=0;Connection lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;"
}
"ConnectionStrings": {
"SampleFirebird": "User=SYSDBA;Password=firebirdsample;Database=/firebird/data/fbsample.fdb;DataSource=localhost;Port=3050;Dialect=3;Charset=ISO8859_1;ServerType=0;Connection lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;"
}
}
15 changes: 15 additions & 0 deletions src/Sample/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
firebird:
image: jacobalberty/firebird
container_name: dbupfirebird
hostname: firebird
environment:
- ISC_USER=SYSDBA
- ISC_PASSWORD=firebirdsample
- FIREBIRD_DATABASE=fbsample.fdb
- FIREBIRD_USER=sampleuser
- FIREBIRD_PASSWORD=firebirdsample
ports:
- 3050:3050
volumes:
- ./firebird/intl/:/firebird/intl
Loading