Problems adding Traefik

Following Using Custom Domains and SSL with Let's Encrypt and Traefik

I added my NameCheap domain to DigitalOcean and I can access my site via the domain name without HTTPS

I added the traefik service

Changed the url and removed the port.

Deployed the traefik service

And then deployed to my live target
it deployed correctly the first time but gave security warnings.

When I double checked everything and tried to deploy again it takes forever and then says

 => ERROR [5/5] RUN npm install --no-optional --production --no-package-lock                                                                   655.0s 
------
 > [5/5] RUN npm install --no-optional --production --no-package-lock:
#0 3.335 npm WARN config optional Use `--omit=optional` to exclude optional dependencies, or
#0 3.335 npm WARN config `--include=optional` to include them.
#0 3.335 npm WARN config
#0 3.335 npm WARN config     Default value does install optional deps unless otherwise omitted.
#0 3.335 npm WARN config production Use `--omit=dev` instead.
#0 654.6 npm notice 
#0 654.6 npm notice New major version of npm available! 8.19.3 -> 9.4.2
#0 654.6 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.4.2>
#0 654.6 npm notice Run `npm install -g npm@9.4.2` to update!
#0 654.6 npm notice 
#0 654.6 npm ERR! code ECONNRESET
#0 654.6 npm ERR! errno ECONNRESET
#0 654.6 npm ERR! network request to https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz failed, reason: Client network socket disc
onnected before secure TLS connection was established
#0 654.6 npm ERR! network This is a problem related to network connectivity.
#0 654.6 npm ERR! network In most cases you are behind a proxy or have bad network settings.
#0 654.6 npm ERR! network 
#0 654.6 npm ERR! network If you are behind a proxy, please make sure that the
#0 654.6 npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
#0 654.6 
#0 654.6 npm ERR! A complete log of this run can be found in:
#0 654.6 npm ERR!     /root/.npm/_logs/2023-02-14T09_54_38_740Z-debug-0.log
------
failed to solve: executor failed running [/bin/sh -c npm install --no-optional --production --no-package-lock]: exit code: 1
Error Launching Services!

This is a node project on a wappler local server.
I have a DigitalOcean database cluster with one DB set for dev and the other for live.
I am deploying to a DigitalOcean server setup through the resource manager.

Do I need to setup my project with Docker if I want to use the resource manager? Or is this some other problem? Any help is appreciated.

Community Page
Last updated: