Skip to content

Commit

Permalink
Merge pull request #1 from gitnnolabs/nginx
Browse files Browse the repository at this point in the history
Adiciona as configurações para o nginx.
  • Loading branch information
gitnnolabs authored Feb 15, 2024
2 parents 14d079a + d85e65e commit 82f4201
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docker-compose.yml
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"
16 changes: 16 additions & 0 deletions nginx/conf.d/ds.conf
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 added nginx/logs/.gitkeep
Empty file.

0 comments on commit 82f4201

Please sign in to comment.