Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit dc50857

Browse files
committed
Add docker-compose options for Postgres DB
# Conflicts: # docker-compose/docker-compose.yaml
1 parent d799545 commit dc50857

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

docker-compose/docker-compose.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
services:
2+
# postgresdb: # Uncomment to connect a Postgres DB
3+
# image: postgres
4+
# environment:
5+
# POSTGRES_PASSWORD: secret
26
wallet-backend:
37
image: waltid/wallet-backend:latest
48
volumes:
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# database = "db.postgres"
12
database = "db.sqlite"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
hikariDataSource {
2+
jdbcUrl = "jdbc:postgresql://postgresdb:5432/postgres"
3+
driverClassName = "org.postgresql.Driver"
4+
username = "postgres"
5+
password = "secret"
6+
transactionIsolation = "TRANSACTION_SERIALIZABLE"
7+
maximumPoolSize = 5
8+
autoCommit = false
9+
dataSource {
10+
journalMode = WAL
11+
fullColumnNames = false
12+
}
13+
}

0 commit comments

Comments
 (0)