Ghost docker using existing Reverse proxy

I am planning to install ghost using the new docker method but I already have a reverse proxy that I am happy with.

Do I just remove the caddy container and references to it from the compose file then at the ports to the ghost container? If so then what internal port should I set for the ghost container?

2 Likes
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-ghost-ingress
  namespace: my-ns
spec:
  ingressClassName: traefik
  tls:
    - hosts:
        - my-domain.tld
        - www.my-domain.tld
      secretName: my-domain-tld-tls
  rules:
    - host: my-domain.tld
      http:
        paths:
          - path: /
            pathType: ImplementationSpecific
            backend:
              service:
                name: ghost-service
                port:
                  name: ghost-port
    - host: www.my-domain.tld
      http:
        paths:
          - path: /
            pathType: ImplementationSpecific
            backend:
              service:
                name: ghost-service
                port:
                  name: ghost-port
          - path: /.ghost/activitypub
            pathType: ImplementationSpecific
            backend:
              service:
                name: activitypub-service
                port:
                  number: 8080
          - path: /.ghost/analytics
            pathType: ImplementationSpecific
            backend:
              service:
                name: traffic-analytics-service
                port:
                  number: 3000
          - path: /.well-known/webfinger
            pathType: ImplementationSpecific
            backend:
              service:
                name: activitypub-service
                port:
                  number: 8080
          - path: /.well-known/nodeinfo
            pathType: ImplementationSpecific
            backend:
              service:
                name: activitypub-service
                port:
                  number: 8080

This is my approach using Traefik with Kubernetes