docker and readme update
This commit is contained in:
parent
5e82fb204a
commit
7b4c29bc00
25
README.md
25
README.md
@ -1,6 +1,6 @@
|
|||||||
# golem-landing-page
|
# thegolem.cz - Landing page
|
||||||
|
|
||||||
## Build Setup
|
## Dev
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# install dependencies
|
# install dependencies
|
||||||
@ -17,4 +17,23 @@ $ npm run start
|
|||||||
$ npm run generate
|
$ npm run generate
|
||||||
```
|
```
|
||||||
|
|
||||||
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
|
## Docker
|
||||||
|
Login to golem docker registry
|
||||||
|
```
|
||||||
|
docker login registry.thegolem.cz
|
||||||
|
```
|
||||||
|
Build the image (use actual version)
|
||||||
|
```bash
|
||||||
|
docker build . -t golem/golem-lp:1.1.0 -t golem/golem-lp:latest
|
||||||
|
```
|
||||||
|
Tag the image (use actual version)
|
||||||
|
```bash
|
||||||
|
docker tag golem/golem-lp:latest registry.thegolem.cz/golem/golem-lp:latest
|
||||||
|
docker tag golem/golem-lp:1.1.0 registry.thegolem.cz/golem/golem-lp:1.1.0
|
||||||
|
```
|
||||||
|
|
||||||
|
Push the image to registry
|
||||||
|
```bash
|
||||||
|
docker push registry.thegolem.cz/golem/golem-lp:latest
|
||||||
|
docker push registry.thegolem.cz/golem/golem-lp:1.1.0
|
||||||
|
```
|
||||||
|
|||||||
56
config/nginx.conf
Normal file
56
config/nginx.conf
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
worker_processes auto;
|
||||||
|
|
||||||
|
#pid /run/nginx.pid;
|
||||||
|
|
||||||
|
error_log /var/log/nginx/error.log;
|
||||||
|
|
||||||
|
events {
|
||||||
|
multi_accept on;
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
|
include mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
'"$http_user_agent" "$http_x_forwarded_for" '
|
||||||
|
'$request_time';
|
||||||
|
|
||||||
|
access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
|
#tcp_nopush on;
|
||||||
|
|
||||||
|
#keepalive_timeout 0;
|
||||||
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
gzip off;
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
|
||||||
|
#access_log logs/host.access.log main;
|
||||||
|
|
||||||
|
charset utf-8;
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
#error_page 404 /404.html;
|
||||||
|
|
||||||
|
# redirect server error pages to the static page /50x.html
|
||||||
|
#
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,8 +1,8 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
frontend-web:
|
golem-lp:
|
||||||
image: golem/golem-lp:latest
|
image: registry.thegolem.cz/golem/golem-lp:latest
|
||||||
build: .
|
build: .
|
||||||
container_name: golem-lp
|
container_name: golem-lp
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user