added static usage to nginx
rodzic
c927b700e4
commit
ba41fc9704
|
@ -13,6 +13,8 @@ services:
|
|||
- ../postgres/:/var/lib/postgresql
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
- nginx_network
|
||||
|
||||
comfy:
|
||||
build:
|
||||
|
@ -31,13 +33,23 @@ services:
|
|||
- .env
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- nginx_network
|
||||
|
||||
web:
|
||||
image: nginx
|
||||
volumes:
|
||||
- ../nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ../nginx/conf.d/:/etc/nginx/conf.d/
|
||||
- ./static/:/opt/services/comfy/static
|
||||
- ./media/:/opt/services/comfy/media
|
||||
ports:
|
||||
- "8000:80"
|
||||
environment:
|
||||
- NGINX_HOST=artel.tepewu.pl
|
||||
- NGINX_PORT=80
|
||||
networks:
|
||||
- nginx_network
|
||||
|
||||
networks:
|
||||
nginx_network:
|
||||
driver: bridge
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
upstream comfy {
|
||||
server comfy:8001;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
proxy_pass http://comfy;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
}
|
Ładowanie…
Reference in New Issue