version: '3.8' services: app: build: . container_name: fast_app ports: - "8000:8000" environment: - MONGO_URI=${MONGO_URI} - HF_API_KEY=${HF_API_KEY} - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} - ENDPOINT_URI=${ENDPOINT_URI} command: ["fastapi", "run", "--host=0.0.0.0", "--port=8000"] mongo: image: mongo:4.4 container_name: mongodb ports: - "27017:27017" environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: example