Added dev and prod docker compose files

This commit is contained in:
2023-09-20 02:30:07 +04:00
parent e5f5624635
commit f782c782bd
6 changed files with 82 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
MONGO_INITDB_ROOT_USERNAME="USERNAME"
MONGO_INITDB_ROOT_PASSWORD="PASSWORD"
MONGO_DB_PORT=27017
MONGO_DB_LOGS_NAME="LOGS"

View File

@@ -0,0 +1,23 @@
upstream app_server{
server app:8000;
}
server{
listen 80;
server_name ui.aykhans.me;
location / {
proxy_pass http://app_server;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_CF_Connecting_IP;
proxy_redirect off;
}
location /static/ {
alias /static/;
}
location /media/ {
alias /media/;
}
}