Files
stock-tracker/docker-compose.yml
T
2026-07-04 00:17:11 +08:00

30 lines
560 B
YAML

services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- stock_data:/app/stock_tracker.db
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/docs"]
interval: 30s
timeout: 10s
retries: 3
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
volumes:
stock_data: