Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

297
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda