Hello everyone so,
I have a server with a few things on it a mailcow server that used port 8443 for all the panel stuff and all the usual ports of IMAP and all that. That runs in docker container.
Then I have a nextcloud server which is currently running on port 80 and 443 but I will later change to another pot because I want to implent another server, but it’s fine for now. This runs in docker on apache with a reverse proxy and stuff I used this docker-compose.yml
: https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache
Now I want to add a collabora online server so i pulled the image and added the container. And in the run command my domain for nextcloud.
then installed apache and all that good stuff. added the reserve proxy config. Ohh one thing when i installed apache it didn’t start because nextcloud was running and the port was unaviable. So i did docker-compose down
to stop nextcloud start apache config and then start nextcloud back up but i get errors that they are both on the same port. What do I do.
Thanks, Josh
Edit:
I used this docker compose filehttps://help.nextcloud.com/t/collabora-nextcloud-docker-linking-problems/67799
i get this error when i start apache when nextcloud is running, i think i need to put them under the same proxy am i correct.
here is the status
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2020-04-17 12:31:39 CEST; 2min 20s ago
Process: 19274 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 9868 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Process: 22592 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 8881 (code=exited, status=0/SUCCESS)
Apr 17 12:31:38 vmi373066.contaboserver.net systemd[1]: Starting The Apache HTTP Server…
Apr 17 12:31:39 vmi373066.contaboserver.net apachectl[22592]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:Apr 17 12:31:39 vmi373066.contaboserver.net apachectl[22592]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0Apr 17 12:31:39 vmi373066.contaboserver.net apachectl[22592]: no listening sockets available, shutting down
Apr 17 12:31:39 vmi373066.contaboserver.net apachectl[22592]: AH00015: Unable to open logs
Apr 17 12:31:39 vmi373066.contaboserver.net apachectl[22592]: Action ‘start’ failed.
Apr 17 12:31:39 vmi373066.contaboserver.net apachectl[22592]: The Apache error log may have more information.
Apr 17 12:31:39 vmi373066.contaboserver.net systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 17 12:31:39 vmi373066.contaboserver.net systemd[1]: apache2.service: Failed with result ‘exit-code’.
Apr 17 12:31:39 vmi373066.contaboserver.net systemd[1]: Failed to start The Apache HTTP Server.