title: Azure Containers - with 10 different services
body: <p>I have an application which has 10 different services including nginx, celery and postgresql.  Is it possible to deploy this using Azure Container Instances?</p>
  <p>I tried few times including taking image from the ACR but I am not able to get this work.  I only see one container instead of all 10.  I thought docker compose will automatically create all the instances but I am struggling understand the exactly issue.</p>
  <p>Here is the sample docker-compose file. Any guidance would be really helpful.</p>
  <pre><code>
  services:
    app: &amp;app
      image: registry....../app
      build:
        context: .
      env_file: variables.env
      volumes:
        # - ./app/:/usr/src/app/
        - static:/usr/src/app/static
        - media:/usr/src/app/media
      command: /bin/true
  
    web:
      &lt;&lt;: *app
      command: uwsgi --ini /usr/src/app/uwsgi.ini
      expose:
        - 8000
  
  
    channelserver:
      &lt;&lt;: *app
      command: daphne --bind 0.0.0.0 --port 5000 -v 1 APP.asgi:application
      expose:
        - 5000
  
    db:
      image: postgres:10.5-alpine
      volumes:
        - postgres:/var/lib/postgresql/data/
      env_file: variables.env
  
    redis:
      image: redis:3.0-alpine
  
    nginx:
      image: registry...../nginx
      build: ./nginx
      environment:
        - SERVERNAME=${DOMAIN:-localhost}
      volumes:
        - type: bind
          source: $PWD/nginx/nginx.conf
          target: /etc/nginx/conf.d/nginx.conf
        - static:/usr/src/app/static
        - media:/usr/src/app/media
      ports:
        - 8080:80
  
     celery-main:
      &lt;&lt;: *app
      command: &quot;celery worker -l INFO -E -A [APP] -Ofair --prefetch-multiplier 1 -Q default -c ${CELERY_MAIN_CONC:-10} --max-tasks-per-child=10&quot;
  
    celery-low-priority:
      &lt;&lt;: *app
      command: &quot;celery worker -l INFO -E -A [APP] -Ofair --prefetch-multiplier 1 -Q low-priority -c ${CELERY_LOW_CONC:-10} --max-tasks-per-child=10&quot;
  
    celery-gpu: &amp;celery-gpu
      &lt;&lt;: *app
      environment:
        - KRAKEN_TRAINING_DEVICE=cpu
      command: &quot;celery worker -l INFO -E -A [APP] -Ofair --prefetch-multiplier 1 -Q gpu -c 1 --max-tasks-per-child=1&quot;
      shm_size: '3gb'
  
    flower:
      image: mher/flower
      command: [&quot;flower&quot;, &quot;--broker=redis://redis:6379/0&quot;, &quot;--port=5555&quot;]
      ports:
        - 5555:5555
  
    mail:
      build: ./exim
      image: registry....../mail
      expose:
        - 25
      environment:
        - PRIMARY_HOST=${DOMAIN:-localhost}
        - ALLOWED_HOSTS=web ; celery-main ; celery-low-priority; docker0
  
  volumes:
     static:
     media:
     postgres:
     esdata:
  </code></pre>