python-dotenv

This commit is contained in:
2025-06-09 19:39:57 -05:00
parent 71869cf458
commit b2e4b85205
2 changed files with 5 additions and 58 deletions

View File

@@ -1,7 +1,7 @@
services:
email-api:
container_name: email-api
image: python:3.12-slim # Wechsel zu Python 3.12
image: python:3.12-slim
restart: unless-stopped
ports:
- "5000:5000"
@@ -10,10 +10,12 @@ services:
volumes:
- ./email_api:/app
working_dir: /app
env_file:
- .env # Explizit .env-Datei laden
environment:
- API_TOKEN=your-api-token # Muss mit Lambda übereinstimmen
- API_TOKEN=${API_TOKEN} # Lädt API_TOKEN aus .env
command: >
bash -c "pip install flask && python app.py"
bash -c "pip install --upgrade pip && pip install flask python-dotenv && python app.py"
networks:
mail_network:
external: true