Skip to content

Commit a79be9c

Browse files
committed
Added docker-compose.yml to create a firebird server
1 parent 108f914 commit a79be9c

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

src/Sample/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
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.
2+
3+
After that you can run the sample project and notice the scripts are run against the fbsample.fdb database
4+
5+
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

src/Sample/appsettings.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ConnectionStrings": {
3-
"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;"
4-
}
2+
"ConnectionStrings": {
3+
"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;"
4+
}
55
}

src/Sample/docker-compose.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
services:
2+
firebird:
3+
image: jacobalberty/firebird
4+
container_name: dbupfirebird
5+
hostname: firebird
6+
environment:
7+
- ISC_USER=SYSDBA
8+
- ISC_PASSWORD=firebirdsample
9+
- FIREBIRD_DATABASE=fbsample.fdb
10+
- FIREBIRD_USER=sampleuser
11+
- FIREBIRD_PASSWORD=firebirdsample
12+
ports:
13+
- 3050:3050
14+
volumes:
15+
- ./firebird/intl/:/firebird/intl

0 commit comments

Comments
 (0)