captains-log/docker-compose.yml
Drew Galbraith 25eb4af14d
All checks were successful
Check / Backend (push) Successful in 20m43s
Check / Frontend (push) Successful in 1m54s
Docker Build / Build and Push Backend Image (push) Successful in 12m14s
Docker Build / Build and Push Frontend Image (push) Successful in 5m19s
Add docker build to main. (#16)
Reviewed-on: #16
Co-authored-by: Drew Galbraith <drew@tiramisu.one>
Co-committed-by: Drew Galbraith <drew@tiramisu.one>
2025-10-19 03:27:10 +00:00

36 lines
726 B
YAML

version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- DATABASE_URL=sqlite:///app/data/local.db
- RUST_LOG=info
volumes:
- backend_data:/app/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
depends_on:
backend:
condition: service_healthy
environment:
- VITE_API_URL=http://localhost:3000
- API_URL=http://backend:3000
volumes:
backend_data: