-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,4 @@ build/ | |
orcinus | ||
test.yml | ||
npm-debug.log | ||
orcinus.yml | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
stack: "mystack" | ||
services: | ||
webapp: | ||
image: "aksaramaya/docker-http-server:v1" | ||
ports: | ||
- "80:80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
upstream webapp { | ||
server webapp:80; | ||
} | ||
|
||
server { | ||
listen 80; | ||
access_log /var/log/nginx/webapp.log; | ||
|
||
# disable any limits to avoid HTTP 413 for large image uploads | ||
client_max_body_size 0; | ||
|
||
# required to avoid HTTP 411: see Issue #1486 (https://github.com/docker/docker/issues/1486) | ||
chunked_transfer_encoding on; | ||
|
||
location / { | ||
|
||
proxy_pass http://webapp; | ||
proxy_set_header Host $http_host; # required for docker client's sake | ||
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_read_timeout 900; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
stack: "mystack" | ||
|
||
services: | ||
webapp: | ||
image: "aksaramaya/docker-http-server:v1" | ||
volumes: | ||
- "yournfs" | ||
nginx: | ||
image: "nginx:1.9" | ||
ports: | ||
- 443:443 | ||
- 80:80 | ||
volumes: | ||
- "conf" | ||
- "logs" | ||
|
||
volumes: | ||
yournfs: | ||
type: "nfs" | ||
address: "192.168.7.11" | ||
source: "/yournfs" | ||
target: "/mnt" | ||
conf: | ||
type: "nfs" | ||
address: "192.168.7.11" | ||
source: "/yournfs/nginx/conf" | ||
target: "/etc/nginx/conf.d" | ||
logs: | ||
type: "nfs" | ||
address: "192.168.7.11" | ||
source: "/yournfs/nginx/logs" | ||
target: "/var/log/nginx" |