Neues Feature für Vorlieben hinzugeüft, Bugfixes im Vanilla game
This commit is contained in:
32
xxxthegame/docker-compose.yml
Normal file
32
xxxthegame/docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
db:
|
||||
image: mysql:8.0
|
||||
container_name: mysql-db
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_DATABASE: xxx_sphere
|
||||
MYSQL_ROOT_PASSWORD: xxxsphere123!
|
||||
ports:
|
||||
- "3306:3306" # <--- Jetzt steht es korrekt alleine!
|
||||
volumes:
|
||||
# Format: [Pfad auf dem Proxmox-Host]:[Pfad im Container]
|
||||
- /mnt/pve_nas/.mysql_data:/var/lib/mysql
|
||||
|
||||
app:
|
||||
image: xxx-sphere:latest
|
||||
container_name: spring-boot-app
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
# Wir biegen localhost auf den Service-Namen 'db' um
|
||||
- SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/xxx_sphere?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
|
||||
# Hier injizieren wir die Werte für deine Platzhalter
|
||||
- DB_USER=root
|
||||
- DB_PASSWORD=xxxsphere123!
|
||||
# Wartet kurz, bis die DB wirklich bereit ist (optional, aber empfohlen)
|
||||
restart: on-failure
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
Reference in New Issue
Block a user