mirror of
https://github.com/aykhans/portfolio-blog.git
synced 2026-10-21 09:48:29 +00:00
Added dev and prod docker compose files
This commit is contained in:
1 parent
e5f5624635
commit
f782c782bd
6 files changed
+82
-2
No files matched your search
@@ -1,4 +1,5 @@
|
||||
MONGO_INITDB_ROOT_USERNAME="USERNAME"
|
||||
MONGO_INITDB_ROOT_PASSWORD="PASSWORD"
|
||||
MONGO_DB_PORT=27017
|
||||
|
||||
MONGO_DB_LOGS_NAME="LOGS"
|
||||
File renamed without changes.
@@ -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/;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user