[GH-ISSUE #789] Remove SGBD from image #365

Closed
opened 2026-02-26 10:32:09 +03:00 by kerem · 3 comments
Owner

Originally created by @AR2000AR on GitHub (Jan 23, 2025).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/789

SGBDs like postrgesql should not be in the server image. They should be hosted in a other container. This is usually done with a docker-compose file. This would reduce the image size, and allow sys admins to reuse a existing server while giving the main image non admin credentials.

Originally created by @AR2000AR on GitHub (Jan 23, 2025). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/789 SGBDs like postrgesql should not be in the server image. They should be hosted in a other container. This is usually done with a docker-compose file. This would reduce the image size, and allow sys admins to reuse a existing server while giving the main image non admin credentials.
kerem closed this issue 2026-02-26 10:32:09 +03:00
Author
Owner

@igwyd commented on GitHub (Feb 4, 2025):

Hello @AR2000AR. Many users use the embedded database, so we don't plan to remove it from the image. But you can use a separate database, example docker-compose.yml.

<!-- gh-comment-id:2632941730 --> @igwyd commented on GitHub (Feb 4, 2025): Hello @AR2000AR. Many users use the embedded database, so we don't plan to remove it from the image. But you can use a separate database, example [docker-compose.yml](https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/docker-compose.yml).
Author
Owner

@AR2000AR commented on GitHub (Feb 4, 2025):

Does changing the DB_HOST disable the built in database ? The goal in doing that is to reduce the RAM load by starting one less instance of the SGBD.

<!-- gh-comment-id:2633856723 --> @AR2000AR commented on GitHub (Feb 4, 2025): Does changing the `DB_HOST` disable the built in database ? The goal in doing that is to reduce the RAM load by starting one less instance of the SGBD.
Author
Owner

@igwyd commented on GitHub (Feb 25, 2025):

Yes, the postgresql in the container is turned off when using an external database.

<!-- gh-comment-id:2680846370 --> @igwyd commented on GitHub (Feb 25, 2025): Yes, the postgresql in the container is turned off when using an external database.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#365
No description provided.