Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self-configuring NGINX as a docker image #1

Open
Ivshti opened this issue Apr 15, 2020 · 0 comments
Open

self-configuring NGINX as a docker image #1

Ivshti opened this issue Apr 15, 2020 · 0 comments
Assignees

Comments

@Ivshti
Copy link
Member

Ivshti commented Apr 15, 2020

NOTE: if the rust proxy that Martin is working on comes before this, the same needs to be done, but for it rather than for NGINX

Rather than configuring NGINX via swarm-syncer, make it a Docker image that configures itself, similar to nginx-proxy.

The reason we can't use nginx-proxy itself is that it configures based on running containers, while we need it to configure based on running services (using the /services API endpoint): see the beamup-sync-swarm script itself. However, this can still be done.

An added benefit from this is that we automatically scale it to all swarm nodes by using mode: global

Important: we need to mount an external cache directory, so that NGINX cache is persistent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants