Skip to content

Commit b2bcecb

Browse files
Moved the database to a docker container which made the setup process much simpler.
1 parent dde0264 commit b2bcecb

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

dockerize_db/.h2.server.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#H2 Server Properties
2+
0=Generic H2 (Server)|org.h2.Driver|jdbc\:h2\:tcp\://localhost/~/radioplayer|username
3+
webAllowOthers=true
4+
tcpAllowOthers=true
5+
webPort=8082
6+
webSSL=false

dockerize_db/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM eclipse-temurin:11
2+
RUN mkdir /opt/app
3+
COPY h2-2.1.214.jar /opt/app
4+
COPY .h2.server.properties radioplayer.mv.db /root/
5+
EXPOSE 8082 9092
6+
CMD ["java", "-jar", "/opt/app/h2-2.1.214.jar", "-webAllowOthers", "-tcpAllowOthers"]

dockerize_db/h2-2.1.214.jar

2.43 MB
Binary file not shown.

dockerize_db/radioplayer.mv.db

56 KB
Binary file not shown.

0 commit comments

Comments
 (0)