[fix] docker-compose should have nginx path for hash_images

This commit is contained in:
alban 2021-10-24 21:06:49 +02:00
parent 81eb870aab
commit a21ba6b8fb
3 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.env .env
/nbproject

View File

@ -32,6 +32,8 @@ services:
depends_on: depends_on:
- app - app
command: nginx -g 'daemon off;error_log /dev/stdout info;' command: nginx -g 'daemon off;error_log /dev/stdout info;'
volumes:
- ${PWD}/files/nginx/sites-enabled:/etc/nginx/sites-enabled
worker: worker:
env_file: .env env_file: .env

View File

@ -3,7 +3,7 @@ server {
listen 80 default_server; listen 80 default_server;
listen [::]:80 default_server; listen [::]:80 default_server;
root /opt/; root /opt/;
location /image { location ~ /(hash_name|image) {
proxy_pass http://app:5000; proxy_pass http://app:5000;
} }
# Docker specific conf # Docker specific conf