mirror of
https://github.com/fergalmoran/dss.docker.git
synced 2025-12-22 09:18:29 +00:00
Added nginx
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
||||
[submodule "dss.api"]
|
||||
path = dss.api
|
||||
url = git@github.com:fergalmoran/dss.api.git
|
||||
[submodule "dss.web"]
|
||||
path = dss.web
|
||||
url = git@github.com:fergalmoran/dss.web.git
|
||||
|
||||
@@ -22,3 +22,23 @@ data:
|
||||
volumes:
|
||||
- /var/lib/postgresql
|
||||
command: /bin/true
|
||||
|
||||
web:
|
||||
restart: always
|
||||
build: ./dss.web
|
||||
links:
|
||||
- "redis:redis"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
|
||||
nginx:
|
||||
restart: always
|
||||
build: ./nginx/
|
||||
ports:
|
||||
- "81:81"
|
||||
links:
|
||||
- "api:api"
|
||||
- "web:web"
|
||||
|
||||
1
dss.web
Submodule
1
dss.web
Submodule
Submodule dss.web added at 505d34ac5f
3
nginx/Dockerfile
Normal file
3
nginx/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM tutum/nginx
|
||||
RUN rm /etc/nginx/sites-enabled/default
|
||||
ADD sites-enabled/ /etc/nginx/sites-enabled
|
||||
18
nginx/sites-enabled/deepsouthsounds.com
Normal file
18
nginx/sites-enabled/deepsouthsounds.com
Normal file
@@ -0,0 +1,18 @@
|
||||
server{
|
||||
listen 81;
|
||||
server_name www.deepsouthsounds.com ext-test.deepsouthsounds.com deepsouthsounds.com;
|
||||
|
||||
location /api {
|
||||
proxy_pass http://api:8000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://web:8080;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user