You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to deploy NPM on a Docker Swarm Cluster. Everything works fine until I add more than one replica to the service.
The last test I did was using a remote MySQL and the /data files on an NFS. I set up a service with 3 replicas and there was no way to get it to be consistent.
My question is: is it possible to deploy an NPM service on a Docker Swarm cluster with more than one replica?
Does anyone have it in production?
I suggest to use original nginx for worker and leave the NPM one replica only.
My custom nginx image windoac/nginx-npm for worker to expose 80/443 ports and the NPM only expose 81 port for management.
It also improve the startup time that the NPM is quite big and startup very slow.
Thanks for the suggestion.
In the end, I decided to use HAProxy as a Reverse Proxy. Considering that I use Docker Swarm, I inject the configuration with a Config in case I need to make any changes.
I leave my stacks in case anyone finds it interesting, although there is nothing transcendental in it:
I'm trying to deploy NPM on a Docker Swarm Cluster. Everything works fine until I add more than one replica to the service.
The last test I did was using a remote MySQL and the /data files on an NFS. I set up a service with 3 replicas and there was no way to get it to be consistent.
My question is: is it possible to deploy an NPM service on a Docker Swarm cluster with more than one replica?
Does anyone have it in production?
This is my latest Stack:
version: '3.8'
services:
nginx-proxy-manager:
image: jc21/nginx-proxy-manager:latest
ports:
environment:
DB_MYSQL_HOST: "ip"
DB_MYSQL_PORT: "3306"
DB_MYSQL_USER: "user"
DB_MYSQL_PASSWORD: "pass"
DB_MYSQL_NAME: "dbname"
volumes:
networks:
deploy:
replicas: 1
placement:
constraints:
networks:
dts-full-service-network:
external: true
ONLY IF YOU HAVE A REPLICA IT WORKS WELL.
/mnt/nfs/ is an NFS
The text was updated successfully, but these errors were encountered: