I am using Docker while development. I noticed that I can't launch dev server with docker-compose up command, but can with docker-compose run
Here is my Dockerfile:
FROM python:3.6 WORKDIR /opt/lib RUN pip install --upgrade pip COPY requirements.txt ./ RUN pip install -r requirements.txt WORKDIR /opt/web Here is docker-compose.yaml
version: '2' services: web: build: ./web/ working_dir: /opt/web ports: - "3000:3000" volumes: - ./web:/opt/web user: 1000:1000 depends_on: - database env_file: env command: python manage.py runserver 0.0.0.0:3000 database: image: mdillon/postgis:9.6 ports: - "5432:5432" volumes: - ./database/data:/var/lib/postgresql/data Now, if I run docker-compose up, only database starts up: 
But with docker-compose run server starts fine: 
If I change docker-compose.yml > services > web > command to /usr/local/bin/gunicorn project.wsgi:application -w 4 -b :3000 it also works fine, but I need autorestart when files change 
I use Docker for MacOS Version 18.03.1-ce-mac65 (24312), Django==1.10
I tried to reset it to factory settings and this did not help.
Can you help me with this?
EDIT 1:
Other manage.py commands, like migrate, work fine
./manage.py runserver 0.0.0.0:3000docker-compose up web?Attaching to mein-dach-web_web_1. Seems like it just hangs.docker exec <container id> psoutputs: PID TTY TIME CMD 1 ? 00:00:00 python 51 ? 00:00:02 python 99 ? 00:00:00 ps