Fix demo snapshot volume mount (named volume must point to directory not file)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
megaproxy 2026-04-23 22:26:08 +00:00
parent 58ab921068
commit fec3b809c5
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ import asyncio
import os
from pathlib import Path
SNAPSHOT_PATH = Path(os.environ.get("DEMO_SNAPSHOT_PATH", "/app/demo_snapshot.sql.gz"))
SNAPSHOT_PATH = Path(os.environ.get("DEMO_SNAPSHOT_PATH", "/app/demo_data/demo_snapshot.sql.gz"))
async def create_snapshot() -> None:

View file

@ -16,10 +16,10 @@ services:
ALLOW_REGISTRATION: "false"
BASE_CURRENCY: "GBP"
DEMO_MODE: "true"
DEMO_SNAPSHOT_PATH: "/app/demo_snapshot.sql.gz"
DEMO_SNAPSHOT_PATH: "/app/demo_data/demo_snapshot.sql.gz"
volumes:
- ../secrets:/run/secrets:ro
- demo_snapshot:/app/demo_snapshot.sql.gz:rw
- demo_snapshot:/app/demo_data:rw
- demo_uploads:/app/uploads
depends_on:
postgres: