Thank you everyone for your help!I elected to start from scratch and use nginx and have come across another issue that I am hoping someone can shed some light on.I've purchased a domain.configured CloudFlare to use as my DNS.set up a CNAME for my two test containers.set up my SSL cert in nginx forwarded the proper ports on my router for my test containers.Configured two hosts. AudioBookShelf and PortainerI can get to my Audiobookshelf perfectly from the web but when I try to reach my portainer it just re-directs to my audiobookshelf container.When I disable audiobookshelf and attempt access my portainer I now get error code 521 website down. I am not sure what I misconfigured.
I do but I am wondering if the syntax in my caddyfile is wrong.I did get past my initial error thanks to this group but I cannot get to my portainer via host name still.
Here is my YAMLD YAML haha version: '3.3' networks: caddy: services: portainer: image: portainer/portainer-ce:latest container_name: portainer2 restart: unless-stopped security_opt: - no-new-privileges:true volumes: - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock:ro - /home/Joe/containers/portainer/portainer-data:/data networks: - caddy ports: - 9000:9000 caddy: image: caddy:latest restart: unless-stopped container_name: caddy ports: - 80:80 - 443:443 volumes: - /home/Joe/container/caddy/Caddyfile:/etc/caddy/Caddyfile - /home/Joe/container/caddy/site:/srv - /home/Joe/container/caddy/caddy_data:/data - /home/Joe/container/caddy/caddy_config:/config networks: - caddy volumes: caddy_data:
Thank you everyone for your help!
I elected to start from scratch and use nginx and have come across another issue that I am hoping someone can shed some light on.
I can get to my Audiobookshelf perfectly from the web but when I try to reach my portainer it just re-directs to my audiobookshelf container.
When I disable audiobookshelf and attempt access my portainer I now get error code 521 website down. I am not sure what I misconfigured.