network_mode: host # Nutzt das Host-Netzwerk

This commit is contained in:
2025-06-10 17:42:15 -05:00
parent 5d961fad9d
commit 7413b54af4
2 changed files with 17 additions and 17 deletions

View File

@@ -3,19 +3,13 @@ services:
container_name: email-api
image: python:3.12-slim
restart: unless-stopped
ports:
- "5000:5000"
networks:
- mail_network
network_mode: host # Nutzt das Host-Netzwerk
volumes:
- ./email_api:/app
working_dir: /app
env_file:
- .env # Explizit .env-Datei laden
- .env
environment:
- API_TOKEN=${API_TOKEN} # Lädt API_TOKEN aus .env
- API_TOKEN=${API_TOKEN}
command: >
bash -c "pip install --upgrade pip && pip install flask python-dotenv && python app.py"
networks:
mail_network:
external: true
bash -c "pip install --upgrade pip && pip install flask python-dotenv && python app.py"