Skip to content

Commit

Permalink
Merge pull request #7 from DbUp/issue/4_dockercompose
Browse files Browse the repository at this point in the history
Added docker-compose.yml to create a firebird server
  • Loading branch information
droyad authored Aug 1, 2024
2 parents 867c8a1 + a79be9c commit 219603b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
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

0 comments on commit 219603b

Please sign in to comment.