47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
services:
|
|
# paddleocr envisagé, non retenu — OCR via Tesseract (appel système), cf. docs/api-v1.md
|
|
# paddleocr:
|
|
# build:
|
|
# context: ./backend/ocr-server
|
|
# dockerfile: Dockerfile
|
|
# ports:
|
|
# - "9090:8080"
|
|
# environment:
|
|
# - OCR_LANG=fr
|
|
# restart: unless-stopped
|
|
|
|
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
|
|
# volumes:
|
|
# - ./backend/uploads:/app/uploads
|
|
# depends_on:
|
|
# postgres:
|
|
# condition: service_healthy
|
|
# restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres-data: |