Initial: Pokedexter TCG-Collector webapp

This commit is contained in:
2026-07-01 21:10:06 +02:00
commit c0952a3bd3
27 changed files with 1684 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
services:
db:
image: postgres:16-alpine
container_name: pokedexter-db
environment:
POSTGRES_DB: pokedexter
POSTGRES_USER: pokedexter
POSTGRES_PASSWORD: pokedexter_secret
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pokedexter"]
interval: 5s
timeout: 3s
retries: 5
backend:
image: pokedexter-backend
build: ./backend
container_name: pokedexter-backend
environment:
DATABASE_URL: "postgresql+asyncpg://pokedexter:pokedexter_secret@db/pokedexter"
SECRET_KEY: "${SECRET_KEY:-skift-mig-til-en-sikker-noegle}"
depends_on:
db:
condition: service_healthy
nginx:
image: pokedexter-nginx
build: ./nginx
container_name: pokedexter-nginx
ports:
- "8080:80"
depends_on:
- backend
volumes:
pgdata: