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

Bind to the data subfolder of the postgres container for FedLCM docker-compose deployment #48

Merged
merged 1 commit into from
May 4, 2023

Conversation

wfangchi
Copy link
Collaborator

@wfangchi wfangchi commented May 4, 2023

The postgres image has a Volume item pointing to /var/lib/postgresql/data. If we don't explicitly bind this path, a volume will be automatically created by docker. And it will be destroyed after docker-compose down, causing data loss.

To address that, we explicitly use a host folder to bind to this path.

…r-compose deployment

The postgres image has a Volume item pointing to `/var/lib/postgresql/data`. If we don't explicitly bind this path, a volume will be automatically created by docker. And it will be destroyed after `docker-compose down`, causing data loss.

To address that, we explicitly use a host folder to bind to this path.

Signed-off-by: Fangchi Wang <wfangchi@vmware.com>
@wfangchi wfangchi requested a review from owlet42 May 4, 2023 02:05
@wfangchi wfangchi self-assigned this May 4, 2023
@owlet42 owlet42 merged commit aeaf1de into FederatedAI:develop-0.3.0 May 4, 2023
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