feat: Nginx configurated to server images for catalog in production.
This commit is contained in:
@@ -44,7 +44,7 @@ services:
|
||||
- media_volume:/app/media
|
||||
- logs_volume:/app/logs
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "127.0.0.1:9000:8000"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -57,22 +57,20 @@ services:
|
||||
gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 4 --timeout 120"
|
||||
|
||||
# Optional: Nginx reverse proxy para servir archivos estáticos
|
||||
# nginx:
|
||||
# image: nginx:alpine
|
||||
# container_name: tienda_ilusion_nginx
|
||||
# ports:
|
||||
# - "80:80"
|
||||
# - "443:443"
|
||||
# volumes:
|
||||
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
# - static_volume:/var/www/static:ro
|
||||
# - media_volume:/var/www/media:ro
|
||||
# - ./ssl:/etc/nginx/ssl:ro
|
||||
# depends_on:
|
||||
# - django
|
||||
# networks:
|
||||
# - tienda_network
|
||||
# restart: unless-stopped
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "10297:80"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- static_volume:/var/www/static
|
||||
- media_volume:/var/www/media
|
||||
- ./dist:/var/www/donconfiao
|
||||
depends_on:
|
||||
- django
|
||||
networks:
|
||||
- tienda_network
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user