Build FastAPI + uvicorn + nginx with docker-compose

PHOTO EMBED

Thu Apr 21 2022 08:19:39 GMT+0000 (Coordinated Universal Time)

Saved by @newaaa41 ##nginx ##fastapi

upstream backend {
    server app:8000;
}

server {
    listen 80;
    # server_name  localhost;

    location / {
        proxy_pass http://backend;
    }

    # log
    # access_log /var/log/nginx/access.log;
    # error_log /var/log/nginx/error.log;
}
content_copyCOPY

https://linuxtut.com/en/02ed76b94c60deba8282/