network_mode: host # Nutzt das Host-Netzwerk
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user