farmOS / farmOS-aggregator

A microservice application for aggregating data from multiple farmOS instances.
GNU General Public License v3.0
21 stars 10 forks source link

Deployment issues #65

Closed paul121 closed 4 years ago

paul121 commented 4 years ago

I wanted to document some issues I'm having with deployment as described in the docs.

Following the instructions to setup a docker swarm goes well, and everything appears to be running, except that I cannot connect to the proxy with the specified domain (specifically localhost right now in my testing)

I get the following log in the proxy container with logging set to DEBUG

time="2020-01-09T19:57:14Z" level=error msg="Undefined entry point(s) 'https' for frontend frontend-servicehttps-localhost-proxy-servicehttps"
time="2020-01-09T19:57:14Z" level=error msg="Undefined entry point(s) 'https' for frontend frontend-webservice-localhost-flower-webservice"
time="2020-01-09T19:57:14Z" level=error msg="Undefined entry point(s) 'https' for frontend frontend-webservice-localhost-pgadmin-webservice"

I believe this might be an issue with the Traefik configuration. Notably we are using v1.7 but v2.1 is out with some changes. It seems like it is a general improvement, but some issues with 2.0 are described here: https://github.com/tiangolo/dockerswarm.rocks/issues/28

We are also considering just using docker-compose for simpler deployment.

paul121 commented 4 years ago

It's worth noting tiangolo/full-stack-fastapi-couchbase#13, the VUE_APP_DOMAIN_PROD cannot be set by the DOMAIN env variable. This might make it harder or impossible to host an aggregator image on Docker hub, which would greatly decrease the build and deploy time.

paul121 commented 4 years ago

This is no longer a bug - we've chosen to drop the docker stack and traefik configuration and go with docker-compose with nginx running a reverse proxy. Setting this up is going much better, and will hopefully allow for easier deployments of the Aggregator.