Files
OrbitWard/docker-compose.yml
T
2026-05-22 17:36:40 -06:00

60 lines
1.1 KiB
YAML

services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: infrapulse
POSTGRES_PASSWORD: infrapulse
POSTGRES_DB: infrapulse
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U infrapulse -d infrapulse"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "8000:8000"
worker:
build:
context: ./worker
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
frontend:
build:
context: ./frontend
environment:
VITE_API_BASE_URL: http://localhost:8000
depends_on:
- backend
ports:
- "5173:5173"
volumes:
postgres-data: