fix: suppression REDIS_URL dupliqué dans docker-compose.prod.yml
This commit is contained in:
@@ -1,15 +1,8 @@
|
|||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Imago — Production (images pré-buildées, stockage local)
|
# Imago — Production (images pré-buildées, stockage local)
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Usage:
|
|
||||||
# 1. Copier .env.example → .env et remplir les secrets
|
|
||||||
# 2. docker compose -f docker-compose/docker-compose.prod.yml up -d
|
|
||||||
#
|
|
||||||
# Docker Compose lit automatiquement le fichier .env du répertoire courant.
|
|
||||||
# =============================================================================
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# ── Admin Panel (React + Nginx) ───────────────────────────
|
|
||||||
admin:
|
admin:
|
||||||
image: docker-registry.dev.home:5000/imago-admin:latest
|
image: docker-registry.dev.home:5000/imago-admin:latest
|
||||||
ports:
|
ports:
|
||||||
@@ -18,7 +11,6 @@ services:
|
|||||||
- backend
|
- backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# ── API Backend ────────────────────────────────────────────
|
|
||||||
backend:
|
backend:
|
||||||
image: docker-registry.dev.home:5000/imago-backend:latest
|
image: docker-registry.dev.home:5000/imago-backend:latest
|
||||||
ports:
|
ports:
|
||||||
@@ -27,7 +19,6 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql+asyncpg://imago:imago@db:5432/imago
|
DATABASE_URL: postgresql+asyncpg://imago:imago@db:5432/imago
|
||||||
REDIS_URL: redis://redis:***@db:5432/imago
|
|
||||||
REDIS_URL: redis://redis:6379/0
|
REDIS_URL: redis://redis:6379/0
|
||||||
STORAGE_BACKEND: ${STORAGE_BACKEND:-local}
|
STORAGE_BACKEND: ${STORAGE_BACKEND:-local}
|
||||||
UPLOAD_DIR: ${UPLOAD_DIR:-/app/data/uploads}
|
UPLOAD_DIR: ${UPLOAD_DIR:-/app/data/uploads}
|
||||||
@@ -44,32 +35,6 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# ── ARQ Worker ────────────────────────────────────────────
|
|
||||||
worker:
|
|
||||||
image: docker-registry.dev.home:5000/imago-backend:latest
|
|
||||||
command: python worker.py
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
environment:
|
|
||||||
DATABASE_URL: postgresql+asyncpg://imago:imago@db:5432/imago
|
|
||||||
REDIS_URL: redis://redis:***@db:5432/imago
|
|
||||||
REDIS_URL: redis://redis:6379/0
|
|
||||||
STORAGE_BACKEND: ${STORAGE_BACKEND:-local}
|
|
||||||
UPLOAD_DIR: ${UPLOAD_DIR:-/app/data/uploads}
|
|
||||||
THUMBNAILS_DIR: ${THUMBNAILS_DIR:-/app/data/thumbnails}
|
|
||||||
MAX_UPLOAD_SIZE_MB: ${MAX_UPLOAD_SIZE_MB:-50}
|
|
||||||
SIGNED_URL_SECRET: ${SIGNED_URL_SECRET:-changez-moi-en-prod}
|
|
||||||
volumes:
|
|
||||||
- ${UPLOAD_VOLUME:-uploads}:/app/data/uploads
|
|
||||||
- ${THUMBNAIL_VOLUME:-thumbnails}:/app/data/thumbnails
|
|
||||||
depends_on:
|
|
||||||
db:
|
|
||||||
condition: service_healthy
|
|
||||||
redis:
|
|
||||||
condition: service_healthy
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
# ── Base de données ───────────────────────────────────────
|
|
||||||
db:
|
db:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
environment:
|
environment:
|
||||||
@@ -86,7 +51,6 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# ── Redis ─────────────────────────────────────────────────
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
|
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
|
||||||
|
|||||||
Reference in New Issue
Block a user