feat: Add initial frontend dependencies, base CSS, and Gitea Docker build workflow.
Some checks failed
Build and Push Docker Images / build-and-push (push) Failing after 2m23s

This commit is contained in:
almazlar
2026-02-20 23:12:41 +03:00
parent c8572c5456
commit cf58ccb2c8
34 changed files with 4424 additions and 0 deletions

43
docker-compose.yml Normal file
View File

@@ -0,0 +1,43 @@
version: '3.8'
services:
db:
image: postgres:15
container_name: todo-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tododb
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
backend:
build: ./backend
container_name: todo-backend
ports:
- "8082:8080"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5433/tododb
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
depends_on:
db:
condition: service_healthy
frontend:
build: ./frontend
container_name: todo-frontend
ports:
- "5173:80"
depends_on:
- backend
volumes:
postgres_data: