Compare commits
2 Commits
f6e5829e04
...
484b60e31e
Author | SHA1 | Date | |
---|---|---|---|
|
484b60e31e | ||
|
6d8795a851 |
@@ -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
|
@@ -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>
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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
|
Reference in New Issue
Block a user