Initial project commit: Docker + SvelteKit source

This commit is contained in:
2026-02-09 10:32:51 -07:00
parent fafb3d70fe
commit 7e7773578d
20 changed files with 6077 additions and 0 deletions

34
docker-compose.yml Normal file
View File

@@ -0,0 +1,34 @@
version: '3.8'
services:
app:
build: .
ports:
- "3000:3000"
environment:
# Use host.docker.internal to access resources on the host machine
- DB_PRIMARY_HOST=host.docker.internal
- DB_PRIMARY_USER=${DB_PRIMARY_USER}
- DB_PRIMARY_PASS=${DB_PRIMARY_PASS}
- DB_PRIMARY_DB=${DB_PRIMARY_DB}
- DB_SECONDARY_HOST=host.docker.internal
- DB_SECONDARY_USER=${DB_SECONDARY_USER}
- DB_SECONDARY_PASS=${DB_SECONDARY_PASS}
- DB_SECONDARY_DB=${DB_SECONDARY_DB}
- DB_AZURE_HOST=${DB_AZURE_HOST}
- DB_AZURE_USER=${DB_AZURE_USER}
- DB_AZURE_PASS=${DB_AZURE_PASS}
- DB_AZURE_DB=${DB_AZURE_DB}
# Use a mounted volume for backups
- BACKUP_PATH=/data/backups
- PORT=3000
- ORIGIN=http://localhost:3000
volumes:
# Map a local folder to the container's backup path
- ./backups:/data/backups:ro
extra_hosts:
- "host.docker.internal:host-gateway"