version: '3.8' services: web: build: . ports: - "7860:7860" env_file: - .env volumes: - .:/app command: > sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:7860" restart: unless-stopped