title: Docker-compose how to update celery without rebuild?
body: <p>I am working on my django + celery + docker-compose project.</p>
  <p><strong>Problem</strong></p>
  <ol>
  <li>I changed django code</li>
  <li>Update is working only after <code>docker-compose up --build</code></li>
  </ol>
  <p>How can I enable code update without rebuild?</p>
  <p>I found this answer <a href="https://stackoverflow.com/questions/56683782/developing-with-celery-and-docker">Developing with celery and docker</a> but didn't understand how to apply it</p>
  <p><strong>docker-compose.yml</strong></p>
  <pre><code>version: '3.9'
  
  services:
    django:
      build: ./project # path to Dockerfile
      command: sh -c &quot; 
        gunicorn --bind 0.0.0.0:8000 core_app.wsgi&quot;
      volumes:
        - ./project:/project
        - ./project/static:/project/static
        - media-volume:/project/media
      expose:
        - 8000
    
    celery:
      build: ./project
      command: celery -A documents_app worker  --loglevel=info
      volumes:
        - ./project:/usr/src/app
        - media-volume:/project/media
  
      depends_on:
        - django
        - redis
  
  .........
  volumes:
      pg_data:
      static:
      media-volume:
  </code></pre>