Skip to content

VladimirTambovtsev/starter-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Start

Kubernetes info start

Set env variables (fetched by docker):
echo "MONGO_URI=<mongodb_url_here>" >> .env
echo "SECRET_KEY=<secret_jwt_salt_here>" >> .env

Dev

Hot-reload typescript from docker container:
  • From Dockerfile
    docker build -t crwn-server:dev --target dev .
    docker run --rm -it -p 8080:8080 -v $(pwd):/app/server crwn-server:dev bash
    Then from container run: root@1fdb0daaa93b:/app/server# npm start

  • Or run from docker-compose (without npm logs) docker-compose up -d


Build

  • From Dockerfile
    docker build -t crwn-server --target prod . && docker run -p 8080:8080 crwn-server

  • From docker-compose
    docker-compose build && docker-compose up


About

Starter kubernetes deployment pack on local machine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published