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