Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Add the proxy to the local docker compose file #68

Merged
merged 3 commits into from
Apr 7, 2022

Conversation

thomasheartman
Copy link
Contributor

This PR adds the Proxy to the list of services that the docker compose file spins up. This makes it easier for users to start the whole Unleash system.

To achieve this, we start the Unleash server with a default client token.

This PR also adds some explanatory comments to the docker compose file to let the user know what the various environment variables do.

This allows users to start the whole Unleash system (including the
proxy) with a single command.
Also: use `UNLEASH_PROXY_CLIENT_KEYS` instead of the deprecated `UNLEASH_PROXY_SECRETS`.
@thomasheartman thomasheartman requested a review from chriswk April 5, 2022 14:04
Comment on lines +49 to 50
# Disable SSL for database connections. @chriswk: why do we do this?
DATABASE_SSL: "false"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chriswk Do you want to explain to me again what this does and why it's necessary?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because otherwise we'd have to configure an SSL certificate for the postgres container, and get the unleash image to trust a custom SSL certificate. Instead we run an unencrypted connection against postgres in this demo setup

Comment on lines +76 to 77
# trust incoming connections blindly (DON'T DO THIS IN PRODUCTION!)
POSTGRES_HOST_AUTH_METHOD: "trust"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly does this do and why do we need it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It allows us to not configure username/passwords for any user. See https://hub.docker.com/_/postgres for further documentation

@thomasheartman
Copy link
Contributor Author

Update README on GitHub

@thomasheartman thomasheartman merged commit bc2a296 into main Apr 7, 2022
@thomasheartman thomasheartman deleted the feat/add-proxy-to-docker-compose branch April 7, 2022 08:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants