Skip to content

Commit

Permalink
Merge branch 'main' of github.com:scieloorg/design-system-statics
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Cordini committed Feb 23, 2024
2 parents c6b89ff + 6eeeb8b commit 3a4944f
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM nginx:latest
COPY css /www/data/static/css
COPY img /www/data/static/img
COPY js /www/data/static/js
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# design-system-statics
# design-system-statics

Arquivos estáticos do SciELO Design System.

Na raiz, temos a versão mais atual dos arquivos estáticos organizadas nos diretórios css, js e img.
O diretório versions contém as versões mais recentes com possibilidade de edição para quando for necessário criar uma nova versão.
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 3a4944f

Please sign in to comment.