version: '3.7' services: inbucket: image: inbucket/inbucket:latest container_name: inbucket ports: - "${HOST_HTTP_ADDR:-0.0.0.0}:${HOST_HTTP_PORT:-8389}:9000/tcp" - "${HOST_SMTP_ADDR:-0.0.0.0}:${HOST_SMTP_PORT:-8389}:2500/tcp" - "${HOST_POP3_ADDR:-0.0.0.0}:${HOST_POP3_PORT:-8389}:1100/tcp" volumes: # Not used by default, you need to configure storage parameters to store on disk. - ./data:/data/ env_file: .env restart: unless-stopped