Compare commits

..

2 Commits

Author SHA1 Message Date
bryce
484b60e31e some tweaks - not sure what as this commit
should havve been done ages ago
2024-11-26 23:36:16 +13:00
bryce
6d8795a851 fix docker-compose.yml 2024-11-16 18:25:48 +13:00
8 changed files with 24 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway" # Enables access to the host's MariaDB instance
watchtower:
watchtower:
image: v2tec/watchtower
container_name: watchtower
environment:

View File

@@ -72,6 +72,12 @@
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<archive>
<manifest>
<mainClass>com.example.bricklog</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>

View File

@@ -0,0 +1,10 @@
# Database configuration
spring.datasource.url=jdbc:mariadb://host.docker.internal:3306/bricklog
spring.datasource.username=bricklog
spring.datasource.password=sl0gg1ngBricks4llD4y
# JPA settings
spring.jpa.hibernate.ddl-auto=update # Creates tables automatically; set to 'none' in production if not needed
spring.jpa.show-sql=true # Shows SQL queries in the console, useful for debugging
spring.jpa.database-platform=org.hibernate.dialect.MariaDBDialect