This commit is contained in:
Egor Matveev 2022-03-29 14:59:27 +03:00
parent 001e3c8ab0
commit bc16c3fad3
2 changed files with 23 additions and 2 deletions

View File

@ -3,6 +3,22 @@ version: "3.4"
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:
image: postgres
environment:
@ -81,8 +97,6 @@ services:
volumes:
- /sprint-data/static:/usr/src/app/static
command: ./manage.py runserver 0.0.0.0:80 --noreload --insecure
ports:
- "80:80"
deploy:
mode: replicated
restart_policy:

7
nginx/nginx.conf Normal file
View File

@ -0,0 +1,7 @@
server {
listen 80;
location / {
proxy_pass http://web:8000/;
}
}