
- Ajout docker-compose.simple.yml avec ports modifiés (15432, 16379, 19000, 19001, 18000) - Création app_simple.py sans dépendances IA - Ajout Dockerfile.simple et requirements.simple.txt - Correction attribut metadata réservé dans database.py - Ajout scripts de démarrage et test simplifiés - Configuration .env.simple pour version sans IA
84 lines
1.9 KiB
YAML
84 lines
1.9 KiB
YAML
x-env: &default-env
|
|
TZ: ${TZ}
|
|
PUID: "1000"
|
|
PGID: "1000"
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
POSTGRES_DB: ${POSTGRES_DB}
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
ports:
|
|
- "15432:5432"
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7
|
|
command: ["redis-server", "--appendonly", "yes"]
|
|
volumes:
|
|
- redis:/data
|
|
ports:
|
|
- "16379:6379"
|
|
restart: unless-stopped
|
|
|
|
minio:
|
|
image: minio/minio:latest
|
|
command: server /data --console-address ":9001"
|
|
environment:
|
|
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
|
|
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
|
|
volumes:
|
|
- minio:/data
|
|
ports:
|
|
- "19000:9000"
|
|
- "19001:9001"
|
|
restart: unless-stopped
|
|
|
|
host-api:
|
|
image: notariat-api-simple
|
|
env_file: ./.env
|
|
environment:
|
|
<<: *default-env
|
|
DATABASE_URL: postgresql+psycopg://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/$POSTGRES_DB
|
|
REDIS_URL: redis://redis:6379/0
|
|
MINIO_ENDPOINT: http://minio:9000
|
|
MINIO_BUCKET: ${MINIO_BUCKET}
|
|
volumes:
|
|
- ../services/host_api:/app
|
|
- ../ops/seed:/seed:ro
|
|
- ../ops/seed/schemas:/schemas:ro
|
|
ports:
|
|
- "18000:8000"
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
- minio
|
|
restart: unless-stopped
|
|
|
|
# Worker désactivé pour la version simplifiée
|
|
# worker:
|
|
# build:
|
|
# context: ../docker/worker
|
|
# env_file: ./.env
|
|
# environment:
|
|
# <<: *default-env
|
|
# DATABASE_URL: postgresql+psycopg://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/$POSTGRES_DB
|
|
# REDIS_URL: redis://redis:6379/0
|
|
# MINIO_ENDPOINT: http://minio:9000
|
|
# MINIO_BUCKET: ${MINIO_BUCKET}
|
|
# volumes:
|
|
# - ../services/worker:/app
|
|
# - ../ops/seed:/seed:ro
|
|
# depends_on:
|
|
# - host-api
|
|
# restart: unless-stopped
|
|
|
|
volumes:
|
|
pgdata:
|
|
redis:
|
|
minio:
|