NodeJS 12.6 template project to run development environment on docker swarm cluster.
- node:12.6.0-alpine
- portainer
- traefik
- NodeJS: v12.6
- Npm: v6.9.0
- Yarn: v1.16.0
First of all, you need discovery the IP address of your docker interface.
Then execute the follow command with the IP address that you meet.
sudo docker swarm init --advertise-addr <ip-address>Deploy nodejs stack, that contain the follow services: node_alpine, portainer/agent and traefik.
Execute the follow command:
sudo environment/docker-stack-deploy.shFor config a local DNS, edit /etc/hosts file and put the follow lines:
<ip-address> portainer-dev.tech
<ip-address> nodejs-dev.tech
<ip-address> traefik-dev.tech
- Portainer: portainer-dev.tech:9000
- Traefik: traefik-dev.tech:8080
- NodeJS: nodejs-dev.tech
