- Clone NodeJS app from git and run it in a Docker container.
- Works with any git provider.
- Download
docker-compose.yml
file:
$ wget https://raw.githubusercontent.com/barbarbar338/docker-node-app-runner/main/docker-compose.yml
- Edit
docker-compose.yml
file as you wish. Don't forget to add these environment variables.runner__GIT_USERNAME
: Your git usernamerunner__PERSONAL_ACCESS_TOKEN
: Git server personal access token.runner__GIT_FQDN
: Git server fqdn. Example: https://github.com -> github.com, https://gitea.338.rocks -> gitea.338.rocksrunner__GIT_REPO_NAME
: Repo to be cloned.runner__GIT_REPO_OWNER
: Owner of the repo to be cloned.runner__GIT_SERVER_SECURE
: true or falserunner__EXTRA_ALPINE_DEPENDENCIES
: This environment variable is not mandatory. If your app depends on extra dependencies then add them here.
- Run
docker-compose up -d
and wait - Your app is now running in a docker container!
Feel free to use GitHub's features.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/my-feature
) - Commit your Changes (
git commit -m 'my awesome feature my-feature'
) - Push to the Branch (
git push origin feature/my-feature
) - Open a Pull Request
Give a βοΈ if this project helped you!
- Mail: hi@338.rocks
- Discord: https://discord.gg/BjEJFwh