full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Default configs don't work with swarm

Open brettnem opened this issue 3 years ago • 1 comments

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.

brettnem avatar Jan 01 '22 17:01 brettnem

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.

fedoseyev avatar Jan 04 '22 17:01 fedoseyev