Skip to content

Conversation

sinadarbouy
Copy link
Collaborator

Ticket(s)

N/A

Description

This PR introduces changes to the docker-compose.yaml file to support multi-proxy configuration. The main changes are as follows:

Service Renaming and Addition:

  • The existing postgres service has been renamed to write-postgres to clearly denote its role as the write database.
  • A new read-postgres service has been added to handle read database operations.

Environment Variable Updates:

  • Updated the gatewayd service environment variables to support separate addresses for read and write operations.
  • New variables GATEWAYD_CLIENTS_DEFAULT_WRITES_ADDRESS and GATEWAYD_CLIENTS_DEFAULT_READS_ADDRESS have been introduced.

Configuration Changes:

  • Updated the gatewayd service links to include both write-postgres and read-postgres.
  • Modified the depends_on section to ensure both write-postgres and read-postgres are healthy before starting the gatewayd service.

Related PRs

Development Checklist

  • I have added a descriptive title to this PR.
  • I have squashed related commits together.
  • I have rebased my branch on top of the latest main branch.
  • I have performed a self-review of my own code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added docstring(s) to my code.
  • I have made corresponding changes to the documentation (docs).
  • I have updated docs using make gen-docs command.
  • I have added tests for my changes.
  • I have signed all the commits.

Legal Checklist

- Renamed the `postgres` service to `write-postgres` and added configuration for the write database.
- Added a new `read-postgres` service to handle read database operations.
- Updated `gatewayd` environment variables to support separate read and write addresses.
- Updated `gatewayd` links and dependencies to include `write-postgres` and `read-postgres`.
@sinadarbouy sinadarbouy self-assigned this Aug 6, 2024
@mostafa mostafa merged commit 2788266 into gatewayd-io:main Aug 6, 2024
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

Successfully merging this pull request may close these issues.

2 participants