Package legacy database in application image

This commit is contained in:
2026-09-23 10:38:58 +02:00
parent 594f96ab1b
commit 68344deb04
4 changed files with 17 additions and 8 deletions
+3 -4
View File
@@ -17,8 +17,9 @@ services:
telcoportal:
build:
context: ./TelcoPortal-source
dockerfile: Dockerfile
# Use the repository root so the tracked legacy database is packaged into the image.
context: .
dockerfile: TelcoPortal-source/Dockerfile
container_name: telcoportal
restart: unless-stopped
depends_on:
@@ -28,8 +29,6 @@ services:
- "8092:8000"
volumes:
- telco-app-data:/app/data
# Read-only source for the automatic first-run SQLite import.
- ./data:/app/legacy-data:ro
environment:
TELCO_DATA_DIR: /app/data
TELCO_DB_HOST: db