initial commit

This commit is contained in:
arrelin
2026-03-06 15:31:24 +03:00
commit 5051b8e9de
38 changed files with 6868 additions and 0 deletions

35
docker-compose.yml Normal file
View File

@@ -0,0 +1,35 @@
services:
db:
image: postgres:17-alpine
environment:
POSTGRES_DB: wedding
POSTGRES_USER: wedding
POSTGRES_PASSWORD: wedding
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wedding"]
interval: 5s
timeout: 5s
retries: 5
backend:
build: ./backend
environment:
DATABASE_URL: postgres://wedding:wedding@db:5432/wedding
PORT: 8080
depends_on:
db:
condition: service_healthy
frontend:
build: ./frontend
ports:
- "3000:80"
depends_on:
- backend
volumes:
postgres_data: