services: app: build: . ports: - "3000:3000" environment: SMTP_HOST: mailpit SMTP_PORT: 1025 depends_on: - mailpit mailpit: image: axllent/mailpit:latest ports: - "8025:8025" # Host 2025 because 1025 is commonly taken; in-network SMTP stays 1025 - "2025:1025"