name: lab2-web-lite services: backend_service: image: dcr.deev.su/edeev/lab2-aad/backend:latest command: > sh -c "python manage.py migrate && python manage.py collectstatic --no-input && gunicorn lab1.wsgi:application --bind 0.0.0.0:8000" volumes: - static_volume:/app/staticfiles env_file: - .env restart: unless-stopped nginx_service: image: dcr.deev.su/edeev/lab2-aad/nginx:latest ports: - "80:80" volumes: - static_volume:/staticfiles depends_on: - backend_service restart: unless-stopped volumes: static_volume: