https://github.com/generouslabs/node-on-docker
Some helpers to run typescript code on docker
https://github.com/generouslabs/node-on-docker
Last synced: about 2 months ago
JSON representation
Some helpers to run typescript code on docker
- Host: GitHub
- URL: https://github.com/generouslabs/node-on-docker
- Owner: GenerousLabs
- License: agpl-3.0
- Created: 2021-01-27T15:39:57.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-28T14:28:41.000Z (over 5 years ago)
- Last Synced: 2025-10-28T15:28:32.897Z (8 months ago)
- Language: Dockerfile
- Size: 18.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- Set `DOCKER_USER_NAME` to your docker hub username
- Set `DOCKER_REPO_NAME` to your docker project name
- For example: https://hub.docker.com/repository/docker/USER/REPO
- `USER` is the `DOCKER_USER_NAME`
- `REPO` is the `DOCKER_REPO_NAME`
- 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`