nginx
This commit is contained in:
parent
001e3c8ab0
commit
bc16c3fad3
@ -3,6 +3,22 @@ version: "3.4"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
image: nginx
|
||||||
|
volumes:
|
||||||
|
- nginx:/etc/nginx
|
||||||
|
networks:
|
||||||
|
- net
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
order: start-first
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
environment:
|
environment:
|
||||||
@ -81,8 +97,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /sprint-data/static:/usr/src/app/static
|
- /sprint-data/static:/usr/src/app/static
|
||||||
command: ./manage.py runserver 0.0.0.0:80 --noreload --insecure
|
command: ./manage.py runserver 0.0.0.0:80 --noreload --insecure
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
7
nginx/nginx.conf
Normal file
7
nginx/nginx.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://web:8000/;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user