Přepsání na sqlite

This commit is contained in:
Matěj Kubíček
2026-09-17 20:38:39 +02:00
parent 7ba60f0e68
commit 6ff34eb671
9 changed files with 11 additions and 1148 deletions
+4 -16
View File
@@ -1,26 +1,14 @@
services:
db:
image: postgres:latest
container_name: template_db
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: templatedb
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
templateweb:
build:
context: .
dockerfile: TemplateWeb/Dockerfile
environment:
ConnectionStrings__DefaultConnection: "Host=db;Database=templatedb;Username=user;Password=password"
depends_on:
- db
- ConnectionStrings__DefaultConnection=Data Source=/app/data/app.db
volumes:
- sqlite_data:/app/data
ports:
- "8080:8080"
volumes:
postgres_data:
sqlite_data: