Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

712
Views
Hot Reload Fast API within docker dev container

I am trying to configure hot-reloading of a FastAPI running in a docker-compose dev container via VS Code. The service detects a reload, shuts down then does not restart. I get the error:

Finished server process [24]

Has anyone got a working example of this, with debugging support? Note: this only happens after you have invoked the service. Hot reloading works fine with multiple changes provided you dont invoke the service.

Docker compose file:

version: '3.7'

services:
  test-service:
    image: test-service
    container_name: test-service
    build: 
      context: ../..
      dockerfile: Dockerfile
      target: debug-tests
    ports:
      - 5000:5000
      - 5678:5678
    env_file:
      - local.env
    volumes:
      - ../src:/app
    entrypoint: [ "python3", "-m", "debugpy", "--listen", "0.0.0.0:5678", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000", "--reload", "--reload-dir", "/app"]

Cheers KH

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!