https://github.com/steelph0enix/node-redis-devcontainer-template
Node.js + Redis devcontainer template, with redis-commander on autostart!
https://github.com/steelph0enix/node-redis-devcontainer-template
devcontainer docker docker-compose-template nodejs redis vscode
Last synced: about 2 months ago
JSON representation
Node.js + Redis devcontainer template, with redis-commander on autostart!
- Host: GitHub
- URL: https://github.com/steelph0enix/node-redis-devcontainer-template
- Owner: SteelPh0enix
- License: mit
- Created: 2022-09-06T18:41:39.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-06T19:01:16.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T00:22:51.919Z (over 1 year ago)
- Topics: devcontainer, docker, docker-compose-template, nodejs, redis, vscode
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node.js + Redis devcontainer template
This repository contains a template for Node.js + Redis VSCode devcontainer.
As a bonus, app container automatically runs `redis-commander` on startup, which also prevents it from shutting down, hence allowing it to serve as devcontainer.
If you don't want to run `redis-commander` on startup, modify `docker-compose.yml` - replace starting `redis-commander` with something like `tail -f /dev/null`. If you won't do that, the container will shut down immediatelly and won't work as devcontainer.
## How to use
Clone this repository and open it in devcontainer using `Remote-Containers: Open folder in Container...` command in VSCode. It should do the rest automatically.
The app folder is monted in `/home/node/app` directory by default. You can change that in `docker-compose.yml`.
`redis-commander` is running on port 8081. Go to to see the web UI.
You can access redis via URL from inside the container. It's also forwarded outside of it, so you can use local tools to connect to it (you can access it via ). If that's not desired behaviour, remove `ports` section of redis from `docker-compose.yml`.