Commit e6e3acc6 authored by Bengfort's avatar Bengfort
Browse files

add nginx

parent 3ea32290
......@@ -22,8 +22,14 @@ services:
python castellum_core/manage.py runserver 0.0.0.0:8000"
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
- ldap
nginx:
image: nginx
volumes:
- ./stage/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8000:80"
depends_on:
- web
server {
listen *:80;
location / {
include /etc/nginx/uwsgi_params;
uwsgi_pass castellum_core;
}
location /static {
alias /static;
autoindex off;
}
}
upstream castellum_core {
server web:9000;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment