Implement Contact Form with Python FastAPI backend and mailcow SMTP integration

This commit is contained in:
Wind
2026-02-15 06:16:52 +09:00
parent 7e5f452449
commit 998d733eb5
6 changed files with 241 additions and 6 deletions

View File

@@ -20,3 +20,22 @@ services:
restart: unless-stopped
volumes:
- ./html:/usr/share/nginx/html:ro
# 3. Contact Form Email Handler
mail-contact:
build: .
container_name: hanmo-mail-contact
restart: unless-stopped
ports:
- '8001:8001'
environment:
- PYTHONUNBUFFERED=1
command: python mail_contact.py
networks:
- default
- mailcow-network
networks:
mailcow-network:
external: true
name: mailcowdockerized_mailcow-network