Skip to content

GenerousLabs/node-on-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-on-docker

Some helpers to run typescript code on docker

Instructions

  • Copy these files into your project root
    • Dockerfile
    • .dockerignore
    • buildDocker.sh
    • pushDocker.sh
  • Edit the Dockerfile to suit your needs
    • At least check the list of files copied to the docker build process
  • Potentially edit .dockerignore
  • Create a .env file in your project root
  • Run ./buildDocker.sh to build a local docker image
  • Run ./pushDocker.sh to push this to docker hub

Deployment

See the example docker-compose.yml file in the deployment/ directory.

Pro Tip: Create a .env file with COMPOSE_PROJECT_NAME=XXX.

  • Create a directory on your docker host
  • Copy and customise the docker-compose.yml file from deployment/
  • Create a .env with the project name
  • Copy the updateAndRestartDocker.sh script into this folder
  • Run ./updateAndRestartDocker.sh

About

Some helpers to run typescript code on docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published