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

296
Vistas
Elixir requests slow in docker with phoenix code reloader on

I currently use docker-sync but it crashes a lot when changing branches when lots of files change. I am trying to find a way to get everything working without it just using volumes, but I am running into the typical Mac volume performance issues.

With this configuration I have everything running fast inside the container, however, when the code reloader is enabled, every network request is slowed down (I'm guessing because it is scanning the entire directory). Is there a work around for this that will still recompile changes?

version: '3.7'

services:
  phoenix:
    image: us.gcr.io/zipbooks-157701/phoenix
    volumes:
      - ./phoenix-api:/app/phoenix-api:delegated
      - /app/phoenix-api/deps/
      - /app/phoenix-api/_build/
    environment:
      DB_PASSWORD: root
      DB_HOSTNAME: mysql
      TESTING_DB_HOSTNAME: mysql
      REDIS_HOST: redis
    depends_on:
      - mysql
      - redis

...
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

There are two things: the code reloader, which compiles your code on every request and the live reloader which scans your filesystem for changes. The code reloader should be as fast as calling mix compile. The live reloader is fully optional (it is just to reload via websockets).

If the issue is in the live reloader, you can either remove it or you can restrict the directories it watches for performance. See the relevant note in the README: https://github.com/phoenixframework/phoenix_live_reload#backends

over 4 years ago · Santiago Trujillo Denunciar
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