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,11 +11,11 @@ services:
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" # Enables access to the host's MariaDB instance - "host.docker.internal:host-gateway" # Enables access to the host's MariaDB instance
watchtower: watchtower:
image: v2tec/watchtower image: v2tec/watchtower
container_name: watchtower container_name: watchtower
environment: environment:
- WATCHTOWER_TRACE=true # Optional for debug output - WATCHTOWER_TRACE=true # Optional for debug output
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock # This allows Watchtower to interact with Docker - /var/run/docker.sock:/var/run/docker.sock # This allows Watchtower to interact with Docker
restart: always # Ensures Watchtower restarts if it stops restart: always # Ensures Watchtower restarts if it stops

View File

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