mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-16 12:45:42 +02:00
Fase 2
This commit is contained in:
@@ -123,6 +123,58 @@ services:
|
||||
networks:
|
||||
- pecflow_net
|
||||
|
||||
# ─── Worker IMAP Sync (arq) ──────────────────────────────────────────────────
|
||||
worker:
|
||||
build:
|
||||
context: ./worker
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
environment:
|
||||
DATABASE_URL: postgresql+asyncpg://pecflow:pecflow_dev_password@db:5432/pecflow
|
||||
REDIS_URL: redis://redis:6379/0
|
||||
MINIO_ENDPOINT: minio:9000
|
||||
volumes:
|
||||
- ./worker:/worker # hot-reload in development
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
minio:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- pecflow_net
|
||||
|
||||
# ─── GreenMail (server IMAP/SMTP mock per test) ───────────────────────────────
|
||||
greenmail:
|
||||
image: greenmail/standalone:2.1.2
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# Crea utente di test: test@example.com / secret
|
||||
GREENMAIL_OPTS: >
|
||||
-Dgreenmail.setup.test.all
|
||||
-Dgreenmail.hostname=0.0.0.0
|
||||
-Dgreenmail.auth.disabled=false
|
||||
-Dgreenmail.users=test@example.com:secret
|
||||
-Dgreenmail.verbose=false
|
||||
ports:
|
||||
- "3025:3025" # SMTP
|
||||
- "3110:3110" # POP3
|
||||
- "3143:3143" # IMAP
|
||||
- "3465:3465" # SMTPS
|
||||
- "3993:3993" # IMAPS
|
||||
- "8080:8080" # API REST GreenMail
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/api/service/readiness"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
profiles:
|
||||
- greenmail # avviato solo con: docker compose --profile greenmail up
|
||||
networks:
|
||||
- pecflow_net
|
||||
|
||||
# ─── PgAdmin (solo dev) ──────────────────────────────────────────────────────
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:latest
|
||||
|
||||
Reference in New Issue
Block a user