generated from bisco/codex-bootstrap
feat(shows): add uploaded show images
This commit is contained in:
@@ -21,6 +21,7 @@ services:
|
||||
- "${BACKEND_PORT:-8000}"
|
||||
volumes:
|
||||
- django_static:/app/staticfiles
|
||||
- django_media:/app/media
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -70,6 +71,7 @@ services:
|
||||
volumes:
|
||||
- ./nginx/templates:/etc/nginx/templates:ro
|
||||
- django_static:/var/www/static:ro
|
||||
- django_media:/var/www/media:ro
|
||||
depends_on:
|
||||
- backend
|
||||
- frontend
|
||||
@@ -80,6 +82,7 @@ services:
|
||||
volumes:
|
||||
postgres_data:
|
||||
django_static:
|
||||
django_media:
|
||||
|
||||
networks:
|
||||
internal:
|
||||
|
||||
@@ -35,9 +35,9 @@ server {
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
proxy_pass http://azionelab_backend;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
alias /var/www/media/;
|
||||
access_log off;
|
||||
expires 1d;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
||||
Reference in New Issue
Block a user