Category : fastapi

I’m trying to connect my FASTAPI app container to a MySQL database container using the docker-compose file. It says that docker creates a default network for both containers. This is my docker-compose file: version: ‘3.4’ services: mysql: image: mysql:latest command: mysqld –default-authentication-plugin=mysql_native_password container_name: mysql restart: always ports: – 3307:3306 environment: MYSQL_ROOT_PASSWORD: password volumes: – mysql-data:/var/lib/mysql ..

Read more

I am struggling to set up an nginx reverse-proxy using Docker (+ docker-compose) for my FastAPI api and React app (made using create-react-app) front end. I also wish to use nginx to set up subdomains such that I can query http://api.drillers for api calls directly or http://drillers to visit the front end site. I am ..

Read more

I have implemented docker in my project with a reference from https://github.com/tiangolo/full-stack-fastapi-postgresql. It is using traefik but I want to use nginx in my case so I did it in a following way this is the docker configuration part worker_processes 1; events { worker_connections 1024; accept_mutex off; } http { include mime.types; default_type application/octet-stream; access_log ..

Read more

I design a classification model using Python=3.9.5, Keras=2.4.3 and tensorflow-cpu=2.5.0. The model works fine in the Windows development environment, but when I deploy it to server using Docker, FastAPI and uvicorn. It is stuck at random while adding the first layer. Sometime this error occurs on training for 4th time or sometimes it occurs after ..

Read more

Hi i am using below as my Docker image for fastapi application FROM tensorflow/tensorflow:latest when i run docker its running but i am getting this error 2021-06-23 23:31:50.516749: F tensorflow/core/lib/monitoring/sampler.cc:42] Check failed: bucket_limits_[i] > bucket_limits_[i – 1] (0 vs. 10) qemu: uncaught target signal 6 (Aborted) – core dumped [2021-06-23 23:31:50 +0530] [1] [WARNING] Worker ..

Read more