WORRYING PROBLEM WITH HESTIACP reddit / selfhosted ---------------------------------------------------------------------- CommercialAnxiety836 · 2023-12-19 13:40 Hi all I'm experiencing a very annoying problem on my server. First of all I have a server running Ubuntu 20.04 on which I installed Hestiacp. Everything works perfectly on this side. My problem is that when I try to install nextcloud (or anything else) on the same server alongside Hestiapc it doesn't work. I don't have access at the desired address. Can someone please give me a solution ? Here is my configuration : docker-compose.yaml `version: '3'` `services:` `proxy:` `image: jwilder/nginx-proxy:alpine` `labels:` `- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"` `container_name: nextcloud-proxy` `networks:` `- nextcloud_network` `ports:` `- 9001:80` `- 9002:443` `volumes:` `- ./proxy/conf.d:/etc/nginx/conf.d:rw` `- ./proxy/vhost.d:/etc/nginx/vhost.d:rw` `- ./proxy/html:/usr/share/nginx/html:rw` `- ./proxy/certs:/etc/nginx/certs:ro` `- /etc/localtime:/etc/localtime:ro` `- /var/run/docker.sock:/tmp/docker.sock:ro` `restart: unless-stopped` `letsencrypt:` `image: jrcs/letsencrypt-nginx-proxy-companion` `container_name: nextcloud-letsencrypt` `depends_on:` `- proxy` `networks:` `- nextcloud_network` `volumes:` `- ./proxy/certs:/etc/nginx/certs:rw` `- ./proxy/vhost.d:/etc/nginx/vhost.d:rw` `- ./proxy/html:/usr/share/nginx/html:rw` `- /etc/localtime:/etc/localtime:ro` `- /var/run/docker.sock:/var/run/docker.sock:ro` `restart: unless-stopped` `db:` `image: mariadb` `container_name: nextcloud-mariadb` `networks:` `- nextcloud_network` `volumes:` `- db:/var/lib/mysql` `- /etc/localtime:/etc/localtime:ro` `environment:` `- MYSQL_ROOT_PASSWORD` `- MYSQL_PASSWORD` `- MYSQL_DATABASE` `- MYSQL_USER` `restart: unless-stopped` `app:` `image: nextcloud:latest` `container_name: nextcloud-app` `networks:` `- nextcloud_network` `depends_on:` `- letsencrypt` `- proxy` `- db` `volumes:` `- nextcloud:/var/www/html` `- ./app/config:/var/www/html/config` `- ./app/custom_apps:/var/www/html/custom_apps` `- ./app/data:/var/www/html/data` `- ./app/themes:/var/www/html/themes` `- /etc/localtime:/etc/localtime:ro` `environment:` `- VIRTUAL_HOST` `- LETSENCRYPT_HOST` `- LETSENCRYPT_EMAIL` `restart: unless-stopped` `volumes:` `nextcloud:` `db:` `networks:` `nextcloud_network:` .env `# MariaDB` `MYSQL_ROOT_PASSWORD=psswd` `MYSQL_PASSWORD=psswd` `MYSQL_DATABASE=nextcloud` `MYSQL_USER=nextcloud` `# Nextcloud` `VIRTUAL_HOST=domain` `LETSENCRYPT_HOST=domain` `LETSENCRYPT_EMAIL=mail` ---------------------------------------------------------------------- Go_F1sh · 2023-12-19 14:08 are you running both services on the same ports? looks like your nextcloud is mapping to 80/443 ---------------------------------------------------------------------- StefanMcL-Pulseway2 · 2023-12-19 14:11 This is a strange one. Double check that the ports in you **'docker- compose.yaml'** file are open if they are being used by another service it might cause some issues. Also the Nginx configuration inside the '**jwilder/nginx- proxy:alpine'** container needs to correctly route requests to your Nextcloud container. Check the Nginx logs within the container for any errors. Is Lets Encrypt Companion able to generat SSL certs for your domain? ---------------------------------------------------------------------- CommercialAnxiety836 · 2023-12-19 14:22 I map ports 9001 and 9002 (which I opened) on my server to ports 80 and 443 on my container. Isn't this how it should be? ---------------------------------------------------------------------- Go_F1sh · 2023-12-19 14:33 Yes, but you can't run more than one service on any given port, hence my question. Is hestiapc also trying to use those ports?