Browse Source

Docker + README

store
Philipp Dormann 10 months ago
parent
commit
56a2d6538c
5 changed files with 76 additions and 0 deletions
  1. +24
    -0
      .dockerignore
  2. +3
    -0
      Dockerfile
  3. +14
    -0
      README.md
  4. +8
    -0
      docker-compose.yml
  5. +27
    -0
      nginx.conf

+ 24
- 0
.dockerignore View File

@ -0,0 +1,24 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
README.md

+ 3
- 0
Dockerfile View File

@ -0,0 +1,3 @@
FROM fholzer/nginx-brotli:v1.19.1
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./ /usr/share/nginx/html

+ 14
- 0
README.md View File

@ -0,0 +1,14 @@
# 🌎 kauft.es - website
## 👨‍💻 Dev
```
yarn
```
```
yarn dev
```
## 🐳 Deployment
```
docker build --pull --rm -f "Dockerfile" -t kaufteswebsite:latest .
```

+ 8
- 0
docker-compose.yml View File

@ -0,0 +1,8 @@
version: '3.4'
services:
kauft-es-website:
image: kauft-es-website
build: .
ports:
- 3000:80

+ 27
- 0
nginx.conf View File

@ -0,0 +1,27 @@
events{}
http {
include mime.types;
sendfile on;
server {
root /usr/share/nginx/html;
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires 1y;
add_header Pragma public;
add_header Cache-Control "public";
}
# --- Brotli
# brotli on;
# brotli_comp_level 6;
# brotli_static on;
# brotli_types application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/eot font/opentype font/otf font/truetype image/svg+xml image/vnd.microsoft.icon image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml;
# --- GZIP
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types application/javascript application/rss+xml application/vnd.ms-fontobject application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/opentype font/otf font/ttf image/svg+xml image/x-icon text/css text/javascript text/plain text/xml;
}
}

Loading…
Cancel
Save