mirror of
https://github.com/wahyd4/you-music.git
synced 2026-08-08 20:59:47 +10:00
chore: Update k8s manifest to version master-37
This commit is contained in:
+5
-8
@@ -51,21 +51,19 @@ spec:
|
||||
persistentVolumeClaim:
|
||||
claimName: youmusic-data-pvc
|
||||
|
||||
# Init container to enable WAL mode and run database migrations
|
||||
# Init container to run database migrations
|
||||
initContainers:
|
||||
- name: youmusic-migrations
|
||||
image: "ghcr.io/wahyd4/you-music:master-36"
|
||||
image: "ghcr.io/wahyd4/you-music:master-37"
|
||||
imagePullPolicy: Always
|
||||
workingDir: /app/backend
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- |
|
||||
echo "🔧 Enabling WAL mode for SQLite..."
|
||||
./enable-wal.sh || true
|
||||
echo "🔄 Running database migrations..."
|
||||
alembic upgrade head
|
||||
echo "✅ Database initialization complete!"
|
||||
echo "✅ Migrations complete!"
|
||||
env:
|
||||
- name: PYTHONUNBUFFERED
|
||||
value: "1"
|
||||
@@ -87,7 +85,7 @@ spec:
|
||||
|
||||
containers:
|
||||
- name: youmusic
|
||||
image: "ghcr.io/wahyd4/you-music:master-36" # Auto-updated by CI
|
||||
image: "ghcr.io/wahyd4/you-music:master-37" # Auto-updated by CI
|
||||
imagePullPolicy: Always
|
||||
workingDir: /app/backend
|
||||
command:
|
||||
@@ -95,8 +93,7 @@ spec:
|
||||
- -c
|
||||
- |
|
||||
echo "🚀 Starting YouMusic application..."
|
||||
# Single worker required for SQLite to avoid database locks
|
||||
exec uvicorn main:app --host 0.0.0.0 --port 8000 --workers 1
|
||||
exec uvicorn main:app --host 0.0.0.0 --port 8000
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /app/data
|
||||
|
||||
Reference in New Issue
Block a user