Files
Kazier/docker-compose.yml
T
2026-07-12 23:49:25 +02:00

56 lines
1.3 KiB
YAML

services:
paddleocr:
build:
context: ./backend/ocr-server
dockerfile: Dockerfile
ports:
- "9090:8080"
environment:
- OCR_LANG=fr
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 120s
postgres:
image: postgres:17-alpine
ports:
- "5432:5432"
environment:
POSTGRES_DB: vaultdrop
POSTGRES_USER: vaultdrop
POSTGRES_PASSWORD: vaultdrop
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vaultdrop"]
interval: 10s
timeout: 5s
retries: 5
# backend:
# build:
# context: ./backend
# dockerfile: Dockerfile
# ports:
# - "8080:8080"
# environment:
# - PORT=8080
# - DATABASE_URL=postgres://vaultdrop:vaultdrop@postgres:5432/vaultdrop?sslmode=disable
# - OCR_ENDPOINT=http://paddleocr:8080
# volumes:
# - ./backend/uploads:/app/uploads
# depends_on:
# paddleocr:
# condition: service_healthy
# postgres:
# condition: service_healthy
# restart: unless-stopped
volumes:
postgres-data: