fastapi / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
MIT License
26.27k stars 4.6k forks source link

Default configs don't work with swarm #449

Open brettnem opened 2 years ago

brettnem commented 2 years ago

Hello, I'm seeing a number of issues trying to get the default cookiecuttter config to work in a swarm. The two biggest issues are

  1. mher/flower on the latest build fails to start up. This has to instead be mher/flower:0.9.7 per https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/420
  2. There are no exposed ports for traefik (or anything else for that matter) therefore, nothing in the swarm is listening for anything.

I've gotten it to partially work by listening on 80 and 443, but other components like flower, the traefik UI etc do not work.

Is this project still active? Or are these issues just due to the project being stale and dead.

BTW, it seems to work well as just a regular compose. Doing a swarm with a remote machine is where I'm getting tripped up.

fedoseyev commented 2 years ago

There are no exposed ports for traefik (or anything else for that matter) therefore, nothing in the swarm is listening for anything. I've gotten it to partially work by listening on 80 and 443, but other components like flower, the traefik UI etc do not work.

Hello, @brettnem! Undo your changes and set up separate traefik service. See https://dockerswarm.rocks/traefik/ or #240 for details.