Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

709
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda