I have a docker-compose setup for my blog (nginx+node-js) now I’d like to add nextcloud.
This means I have an existing docker-compose and have nginx running in the host ubuntu. The existing docker-compose.yml file has only the blog’s node-js server. The nginx server has lets-encrypt setup for all of the services that it proxies, domain.com (my blog) and cloud.domain.com (where I’d like to put nextcloud).
The proxies are all working correctly but now I need to get nextcloud up by adding it to my docker-compose. Most how-tos also include the webserver/proxy and so seem to hide config by assuming the proxy is running inside the docker-compose network, it is not in my case. The nginx server is running on bare Ubuntu.
What is the minimal setup for nextcloud (fpm server ready for an existing nginx proxy) + db (maria + redis or any other is fine with me). What port does the docker-compose nextcloud expose to the proxy and how? I think I need to map the nextcloud-fpm container port to a host port, how?
What is the integration needed in my nginx proxy setup? For instance what port should all trafic be sent to for the docker-compose nextcloud server?