-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from gitnnolabs/nginx
Adiciona as configurações para o nginx.
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '2' | ||
|
||
services: | ||
|
||
nginx: | ||
image: nginx:latest | ||
container_name: ds_nginx | ||
depends_on: | ||
- ds_webapp | ||
volumes: | ||
- ./nginx/conf.d:/etc/nginx/conf.d | ||
- ./nginx/logs:/var/log/nginx/ | ||
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,16 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name ds; | ||
|
||
location /static { | ||
root /www/data | ||
client_max_body_size 1000m; | ||
client_body_buffer_size 128k; | ||
allow all; | ||
} | ||
|
||
gzip on; | ||
access_log /var/log/nginx/ds-access.log; | ||
error_log /var/log/nginx/ds-error.log warn; | ||
} |
Empty file.