mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-02 17:55:07 +00:00
f6731698c3
Task 8.1 Complete: Email Client Bootloader This commit creates the minimal Next.js bootloader at emailclient/ that: 1. Loads the email_client package from packages/email_client/ 2. Initializes Redux store with core reducers (auth, projects, workflows, async data) 3. Renders declarative UI from package page-config JSON 4. Provides working app structure with: - app/page.tsx - Main page that loads email_client package - app/layout.tsx - Root layout with Redux provider - app/globals.css - Email-client-specific styles - docker-compose.yml - Services (Postfix, Dovecot, Redis, Flask, PostgreSQL) - .env.example - Configuration template - package.json - Dependencies (Next.js, React, Redux, FakeMUI) - docs/CLAUDE.md - Development guide Services configured: - Postfix (SMTP relay) - ports 25, 587 - Dovecot (IMAP/POP3) - ports 143, 993, 110, 995 - Redis (cache) - port 6379 - Flask email-service - port 5000 - PostgreSQL (metadata) - port 5432 Next phases: - Phase 3: Redux slices for email state - Phase 4: Custom email hooks - Phase 5: Email package UI definitions - Phase 6: Email workflow plugins - Phase 7: Flask backend service - Phase 8: Integration testing
104 lines
2.4 KiB
YAML
104 lines
2.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# SMTP Relay Service (Postfix)
|
|
postfix:
|
|
image: boky/postfix:latest
|
|
container_name: emailclient-postfix
|
|
environment:
|
|
ALLOWED_SENDER_DOMAINS: 'example.com localhost'
|
|
RELAYHOST: '[smtp.gmail.com]:587'
|
|
RELAYHOST_USERNAME: ''
|
|
RELAYHOST_PASSWORD: ''
|
|
POSTFIX_myhostname: 'emailclient.local'
|
|
POSTFIX_mynetworks: '127.0.0.0/8 10.0.0.0/8'
|
|
ports:
|
|
- '25:25'
|
|
- '587:587'
|
|
networks:
|
|
- emailclient-net
|
|
restart: unless-stopped
|
|
|
|
# IMAP Server (Dovecot)
|
|
dovecot:
|
|
image: dovecot/dovecot:latest
|
|
container_name: emailclient-dovecot
|
|
environment:
|
|
DOVECOT_PROTOCOLS: 'imap pop3'
|
|
DOVECOT_MAIL_HOME: '/var/mail'
|
|
DOVECOT_USER_DB: 'static'
|
|
DOVECOT_PASS_DB: 'static'
|
|
ports:
|
|
- '143:143'
|
|
- '993:993'
|
|
- '110:110'
|
|
- '995:995'
|
|
volumes:
|
|
- dovecot-data:/var/mail
|
|
- ./config/dovecot.conf:/etc/dovecot/dovecot.conf:ro
|
|
networks:
|
|
- emailclient-net
|
|
restart: unless-stopped
|
|
|
|
# Redis Cache
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: emailclient-redis
|
|
command: redis-server --appendonly yes
|
|
ports:
|
|
- '6379:6379'
|
|
volumes:
|
|
- redis-data:/data
|
|
networks:
|
|
- emailclient-net
|
|
restart: unless-stopped
|
|
|
|
# Email Service (Flask backend)
|
|
email-service:
|
|
image: emailclient-service:latest
|
|
build:
|
|
context: ./services/email-service
|
|
dockerfile: Dockerfile
|
|
container_name: emailclient-email-service
|
|
environment:
|
|
POSTFIX_HOST: postfix
|
|
DOVECOT_HOST: dovecot
|
|
REDIS_URL: redis://redis:6379/0
|
|
DATABASE_URL: postgresql://emailclient:emailclient@postgres:5432/emailclient
|
|
FLASK_ENV: development
|
|
FLASK_DEBUG: '1'
|
|
ports:
|
|
- '5000:5000'
|
|
depends_on:
|
|
- postfix
|
|
- dovecot
|
|
- redis
|
|
networks:
|
|
- emailclient-net
|
|
restart: unless-stopped
|
|
|
|
# PostgreSQL Database (optional, for email metadata)
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: emailclient-postgres
|
|
environment:
|
|
POSTGRES_USER: emailclient
|
|
POSTGRES_PASSWORD: emailclient
|
|
POSTGRES_DB: emailclient
|
|
ports:
|
|
- '5432:5432'
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
networks:
|
|
- emailclient-net
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
dovecot-data:
|
|
redis-data:
|
|
postgres-data:
|
|
|
|
networks:
|
|
emailclient-net:
|
|
driver: bridge
|