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
|
import os
|
||||||
from pathlib import Path
|
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:
|
async def create_snapshot() -> None:
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ services:
|
||||||
ALLOW_REGISTRATION: "false"
|
ALLOW_REGISTRATION: "false"
|
||||||
BASE_CURRENCY: "GBP"
|
BASE_CURRENCY: "GBP"
|
||||||
DEMO_MODE: "true"
|
DEMO_MODE: "true"
|
||||||
DEMO_SNAPSHOT_PATH: "/app/demo_snapshot.sql.gz"
|
DEMO_SNAPSHOT_PATH: "/app/demo_data/demo_snapshot.sql.gz"
|
||||||
volumes:
|
volumes:
|
||||||
- ../secrets:/run/secrets:ro
|
- ../secrets:/run/secrets:ro
|
||||||
- demo_snapshot:/app/demo_snapshot.sql.gz:rw
|
- demo_snapshot:/app/demo_data:rw
|
||||||
- demo_uploads:/app/uploads
|
- demo_uploads:/app/uploads
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue