Skip to content

Commit f40f30b

Browse files
committed
Update the docker stuff to support the new driver :^)
1 parent eda548d commit f40f30b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

compose.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ services:
33
image: ghcr.io/casterlabs/dbohttp:latest
44
restart: always
55
environment:
6+
DB_CONN_STR: "/home/container/database.sqlite"
7+
DB_DRIVER: "SQLITE"
68
JWT_SECRET: "abc123"
79
volumes:
8-
- ./database.sqlite:/home/container/database.sqlite
10+
- ./database.sqlite:/home/container/database.sqlite # Used for SQLITE
911
ports:
10-
- 9000:8000 # Change 9000 to your liking.
12+
- 9000:10243 # Change 9000 to your liking.

docker_launch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
rm /home/container/config.json
4-
echo '{"database": {"file": "/home/container/database.sqlite","driver": "SQLITE","accessTimeoutSeconds": 30},"debug": false,"jwtSecret": "'"$JWT_SECRET"'","port": 8000,"heartbeatUrl": null,"heartbeatIntervalSeconds": 15,"ssl": null}' >> /home/container/config.json
4+
echo '{"database": {"connectionString": "'"$DB_CONN_STR"'","driver": "'"$DB_DRIVER"'","accessTimeoutSeconds": 30},"debug": false,"jwtSecret": "'"$JWT_SECRET"'","port": 10243,"heartbeatUrl": null,"heartbeatIntervalSeconds": 15}' >> /home/container/config.json
55

66
java -XX:+CrashOnOutOfMemoryError -jar dbohttp.jar

0 commit comments

Comments
 (0)