version: '2' services: nginx: image: nginx:latest container_name: ng02 ports: - "80:8000" volumes: - static-files:/src/static - ./config:/etc/nginx/conf.d depends_on: - web redis: image: redis container_name: rd02 ports: - "6379:6379" web: build: context: ../ dockerfile: Docker/Dockerfile container_name: dg02 volumes: - static-files:/usr/src/app/static expose: - "8000" depends_on: - redis # command: bash -c "python3 manage.py collectstatic && gunicorn deplodock.wsgi --bind 0.0.0.0:8000" volumes: static-files: