title: How to add GDAL in docker
body: <p>I am trying to setup Docker and geodjagno. Upon <code>docker-compose up</code> I have this following error:</p>
  
  <pre><code>django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal", "GDAL", "gdal2.2.0", "gdal2.1.0", "gdal2.0.0", "gdal1.11.0", "gdal1.10.0", "gdal1.9.0"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.
  </code></pre>
  
  <p>GDAL is a library that can be found in this image <code>wooyek/geodjango</code></p>
  
  <p>Dockerfile</p>
  
  <pre><code> FROM wooyek/geodjango
   ENV PYTHONUNBUFFERED 1
   RUN mkdir /code
   WORKDIR /code
   ADD requirements.txt /code/
   RUN pip install -r requirements.txt
   ADD . /code/
  </code></pre>
  
  <p>docker-compose</p>
  
  <pre><code>services:
  
    web:
      build: .
      container_name: web
      command: python3 manage.py runserver 0.0.0.0:8000
      volumes:
        - .:/code
      ports:
        - "8000:8000"
      depends_on:
        - db
  
    db:
      image: mdillon/postgis
      #command: -e POSTGRES_USER=johndoe -e POSTGRES_PASSWORD=myfakedata -e POSTGRES_DB=myfakedata library/postgres
      environment:
        - POSTGRES_USER=johndoe
        - POSTGRES_PASSWORD=myfakedata
        - POSTGRES_DB=myfakedata
      ports:
        - "5435:5432"
  
  
    adminer:
      image: adminer
      restart: always
      ports:
        - 8080:8080
  </code></pre>