I’m trying to get Neo4J to work with https://coolify.io/ on my Raspberry PI. I’m a total beginner in self-hosting, networking etc.

I’ve setup a Cloudflair DNS record and openend up some port on my router. I can access Coolify via coolify.example.com but if i create a subdomain voor Neo4J I go to the Coolify dashboard instead of the Neo4J browser that is on :7474. With the settings below I can access Neo4J via <public_ip>:7474 inside my home network but not outside my network. What do i need to change? I thought that Coolify would handle te reversed proxy? In the labels below i’ve tried 443 instead of 7474.

Router:

  • 22 -> 22
  • 80 -> 8000
  • 443 -> 8000

If i try the settings below in my router i cannot reach coolify.

  • 80 -> 80
  • 443 -> 443

Cloudflair:

  • coolify.example.com -> <public_ip> //Works
  • neo4j.example.com -> <public_ip> //Points to dashboard
  • neo4j.example.com:7474 //Does not load

Coolify:

  • Instance domain (main settings): https://coolify.example.com`

Neo4J Docker:

  • Domains: https://neo4j.example.com
  • Ports exposed: 443,80
  • Ports mapping: 7474:7474,7687:7687

Container labels:

traefik.enable=true
traefik.http.middlewares.gzip.compress=true
traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
traefik.http.routers.http-0-c0c4k8c.entryPoints=http
traefik.http.routers.http-0-c0c4k8c.middlewares=redirect-to-https
traefik.http.routers.http-0-c0c4k8c.rule=Host(`neo4j.example.com`) && PathPrefix(`/`)
traefik.http.routers.http-0-c0c4k8c.service=http-0-c0c4k8c
traefik.http.routers.https-0-c0c4k8c.entryPoints=https
traefik.http.routers.https-0-c0c4k8c.middlewares=gzip
traefik.http.routers.https-0-c0c4k8c.rule=Host(`neo4j.example.com`) && PathPrefix(`/`)
traefik.http.routers.https-0-c0c4k8c.service=https-0-c0c4k8c
traefik.http.routers.https-0-c0c4k8c.tls.certresolver=letsencrypt
traefik.http.routers.https-0-c0c4k8c.tls=true
traefik.http.services.http-0-c0c4k8c.loadbalancer.server.port=7474
traefik.http.services.https-0-c0c4k8c.loadbalancer.server.port=7474
caddy_0.encode=zstd gzip
caddy_0.handle_path.0_reverse_proxy={{upstreams 7474}}
caddy_0.handle_path=/*
caddy_0.header=-Server
caddy_0=https://neo4j.example.com
caddy_ingress_network=coolify