Files
my_shop/docker-compose.yml

21 lines
544 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
web:
build: .
volumes:
- .:/app
# Больше не открываем порт 8080 наружу для Django,
# теперь его будет "прикрывать" Nginx
expose:
- "8000"
# command: gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 3
nginx:
image: nginx:latest
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./staticfiles:/app/staticfiles
- ./media:/app/media
ports:
- "8080:80"
depends_on:
- web