Unable to receive Push Notifications

Could you add this as a comment to this GitHub issue here? Thanks!

Hi @kkadapa,

I have the same problem,
how should the private network be configured?

Hi @mpagnanelli and @jeyraman

Here is the entire working Portainer stack YML file with Private networks included…
Please note that we are not using Traefik.

Hope this helps!

version: ‘3.7’
services:
server:
image: ‘bidmcdigitalpsychiatry/lamp-server:2021’
environment:
- HTTPS=off
- SCHEDULER=on
- ROOT_KEY=xxxx
- CDB=http://admin:xxxx@database:5984/
- APP_GATEWAY=app-gateway.lamp.digital
- PUSH_API_KEY=xxxx
- REDIS_HOST=redis://cache:6379/0
- NATS_SERVER=message_queue:4222
networks:
- public
- private
expose:
- “3000”
ports:
- “3000:3000”
deploy:
mode: replicated
labels:
traefik.enable: ‘true’
traefik.http.routers.lamp_server.entryPoints: ‘websecure’
traefik.http.routers.lamp_server.rule: ‘Host(api.example.com)’
traefik.http.routers.lamp_server.tls.certresolver: ‘default’
traefik.http.services.lamp_server.loadbalancer.server.port: 3000
placement:
constraints:
- node.role == manager
database:
image: apache/couchdb:latest
volumes:
- /home/azureuser/data/couchdb:/opt/couchdb/data
networks:
- private
ports:
- “5984:5984”
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=xxxx
deploy:
mode: replicated
labels:
traefik.enable: ‘true’
traefik.http.routers.lamp_db.entryPoints: ‘websecure’
traefik.http.routers.lamp_db.rule: ‘Host(db.example.com)’
traefik.http.routers.lamp_db.tls.certresolver: ‘default’
traefik.http.services.lamp_db.loadbalancer.server.port: 5984
placement:
constraints:
- node.role == manager
cache:
image: redis:6.0.8-alpine
networks:
- private
healthcheck:
test: redis-cli ping
deploy:
mode: replicated
update_config:
order: stop-first
failure_action: rollback
placement:
constraints:
- node.role == manager
message_queue:
image: nats:2.1.9-alpine3.12
networks:
- private
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8222/varz || exit 1
deploy:
mode: replicated
update_config:
order: start-first
failure_action: rollback
placement:
constraints:
- node.role == manager
networks:
private:
public:
external: true