47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
email-reports:
|
|
build: .
|
|
container_name: email_reports_unified
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=America/Chicago
|
|
|
|
# Crew Sportswear Database
|
|
- DB_HOST_CREW=${DB_HOST_CREW:-mysql}
|
|
- DB_PORT_CREW=${DB_PORT_CREW:-3306}
|
|
- DB_NAME_CREW=${DB_NAME_CREW:-custom_design}
|
|
- DB_USER_CREW=${DB_USER_CREW:-crew_user}
|
|
- DB_PASS_CREW=${DB_PASS_CREW}
|
|
|
|
# MerchBay Database
|
|
- DB_HOST_MERCHBAY=${DB_HOST_MERCHBAY:-mysql}
|
|
- DB_PORT_MERCHBAY=${DB_PORT_MERCHBAY:-3306}
|
|
- DB_NAME_MERCHBAY=${DB_NAME_MERCHBAY:-merchbay_laravel}
|
|
- DB_USER_MERCHBAY=${DB_USER_MERCHBAY:-merchbay_user}
|
|
- DB_PASS_MERCHBAY=${DB_PASS_MERCHBAY}
|
|
|
|
# SMTP Configuration (shared)
|
|
- SMTP_HOST=${SMTP_HOST:-smtp.gmail.com}
|
|
- SMTP_PORT=${SMTP_PORT:-587}
|
|
|
|
# Crew SMTP
|
|
- SMTP_PASS_CREW=${SMTP_PASS_CREW}
|
|
|
|
# MerchBay SMTP
|
|
- SMTP_PASS_MERCHBAY=${SMTP_PASS_MERCHBAY}
|
|
|
|
volumes:
|
|
- ./daily_order_reports_crew:/app/daily_order_reports_crew
|
|
- ./daily_order_reports_merchbay:/app/daily_order_reports_merchbay
|
|
- ./email.log:/app/email.log
|
|
networks:
|
|
- crew-app-net
|
|
labels:
|
|
- "description=Unified Email Reports for Crew & MerchBay"
|
|
|
|
networks:
|
|
crew-app-net:
|
|
external: true
|