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:
parent
58ab921068
commit
fec3b809c5
2 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue