services: email-api: container_name: email-api image: python:3.12-slim restart: unless-stopped network_mode: host volumes: - ./email_api:/app working_dir: /app env_file: - .env environment: - API_TOKEN=${API_TOKEN} command: > bash -c "pip install --upgrade pip && pip install flask python-dotenv && python app.py"