velxio/docker-compose.yml

26 lines
561 B
YAML

services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8001:8001"
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8001/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
ports:
- "3000:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped