version: '3' services: postgres: image: postgres:9.5 restart: always grady: image: docker.gitlab.gwdg.de/j.michal/grady:master command: - /bin/sh - -c - | sleep 5 python manage.py migrate --noinput gunicorn \ --bind 0.0.0.0:8000 \ --workers=2 \ --worker-class=gevent \ grady.wsgi:application depends_on: - postgres restart: always networks: - default expose: - "8000" ports: - "8000:8000"