CoolFace
Apppublic

Malek1ab/ndvi-api

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
docker-compose.yml37 linesDownload Raw Back to root
1version: '3.8'2 3services:4  vegetation-api:5    build:6      context: .7      dockerfile: Dockerfile8    ports:9      - "8000:8000"10    environment:11      - SENTINELHUB_INSTANCE_ID=${SENTINELHUB_INSTANCE_ID}12      - SENTINELHUB_CLIENT_ID=${SENTINELHUB_CLIENT_ID}13      - SENTINELHUB_CLIENT_SECRET=${SENTINELHUB_CLIENT_SECRET}14      - MPLCONFIGDIR=/tmp15      - PYTHONUNBUFFERED=116    volumes:17      - ./logs:/app/logs  # Optionnel : pour persister les logs18    restart: unless-stopped19    healthcheck:20      test: ["CMD", "curl", "-f", "http://localhost:8000/"]21      interval: 30s22      timeout: 10s23      retries: 324      start_period: 40s25 26  # Service optionnel pour un reverse proxy avec nginx27  nginx:28    image: nginx:alpine29    ports:30      - "80:80"31    depends_on:32      - vegetation-api33    volumes:34      - ./nginx.conf:/etc/nginx/nginx.conf:ro35    restart: unless-stopped36    profiles:37      - production