-
Notifications
You must be signed in to change notification settings - Fork 20
Update docs for Docker related content #664
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
Open
fernandinand
wants to merge
5
commits into
main
Choose a base branch
from
663-remove-docker-compose-related-content
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,36 @@ Installation guide will help you to install your <CommunityPlatformNameLink /> o | |
|
||
## Installation System Requirements | ||
|
||
We recommend using a dedicated host machine with 8 GB of memory. The requirements for CPU and persistent storage depend largely on the frequency of project updates and the anticipated size of the data you expect to store respectively. | ||
For a typical deployment, we recommend using a dedicated host machine with **8 GB** of memory and **2 vCPUS** (similar to AWS `t3a.large` instances). | ||
The requirements for CPU and persistent storage depend largely on the frequency of project updates and the anticipated size of the data you expect to store respectively. | ||
A very conservative rule of thumb, regarding needed disk size would be `mergin maps project size * number of versions`. | ||
If you have a team size over 25 people and synchronise often your <MainPlatformName /> projects, consider a host with **4 vCPUS**. | ||
|
||
On OS level, we recommend to use a Linux distribution that has fully compatibility with Docker, since <MainPlatformName /> is deployed by default with `docker compose`. | ||
|
||
A low-latency, high-bandwidth environment is preferred due to volume of data needed to perform synchronization with <MainPlatformName />. This is specially important on large projects with hundreds of megabytes in between syncs. | ||
|
||
|
||
### Infrastructure overview | ||
|
||
* **PostgreSQL** - Database that holds application data. Can be external and therefore excluded from install orchestration with proper [configuration](https://merginmaps.com/docs/server/environment/#database-settings). | ||
* **Redis** - The caching and asynchronous task engine running on top of <MainPlatformName /> | ||
* **Celery-Beat** - The Celery task orchestrator used by <MainPlatformName /> | ||
* **Celery-Worker** - The Celery container responsible for workers that perform tasks on <MainPlatformName /> | ||
* **Server** - The server backend instance of <MainPlatformName /> | ||
* **Web** - The frontend instance for <MainPlatformName /> | ||
* **Proxy** - NGINX instance serving <MainPlatformName /> in reverse proxy configuration. | ||
|
||
### Firewall ports | ||
|
||
By default, only HTTP port `8080` need to be open on firewall side. Also is recommended to open `443` port if SSL is enabled. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that we recommend using HTTPS for production use. |
||
All other infrastructure instances will work within the same docker network group, so no additional ports need to be managed on firewall side. | ||
|
||
|
||
## Install Docker from official source | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can rename it to Install Docker or move that to some info tip message in following text. |
||
|
||
Please, use latest version of Docker and Docker Compose tools. | ||
Follow the [official](https://docs.docker.com/engine/install/) guidelines in accordance to your OS system. | ||
|
||
## Mergin Maps CE Docker Images | ||
<ServerType type="CE" /> | ||
|
@@ -60,7 +89,7 @@ Then, edit the `.prod.env` file and provide values for all variables marked as r | |
|
||
### Start docker containers | ||
|
||
Before proceeding, ensure you have both `docker` and `docker-compose` installed on your system. | ||
Before proceeding, ensure you have both `docker` and `docker compose` installed on your system. | ||
|
||
Once your environment is configured, you can start the containers by running the following commands for the Community and Enterprise editions. | ||
|
||
|
@@ -70,7 +99,7 @@ Community edition stack: | |
$ mkdir -p mergin_db # database data directory | ||
$ sh ../common/set_permissions.sh projects # application internal data directory | ||
$ sh ../common/set_permissions.sh diagnostic_logs # directory to persist diagnostic logs (optional) | ||
$ docker-compose -f docker-compose.yml up -d | ||
$ docker compose -f docker-compose.yml up -d | ||
``` | ||
|
||
Enterprise edition stack: | ||
|
@@ -80,8 +109,8 @@ $ mkdir -p mergin-db-enterprise # database data directory | |
$ sh ../common/set_permissions.sh data # application internal data directory | ||
$ sh ../common/set_permissions.sh map_data # maps data directory (neccessary for maps) | ||
$ sh ../common/set_permissions.sh diagnostic_logs # directory to persist diagnostic logs (optional) | ||
$ docker-compose -f docker-compose.yml up -d | ||
$ docker-compose -f docker-compose.maps.yml up -d # Run maps stack separately | ||
$ docker compose -f docker-compose.yml up -d | ||
$ docker compose -f docker-compose.maps.yml up -d # Run maps stack separately | ||
``` | ||
| ||
### Initialise database | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about maps / SSO stack, shall we have something similar there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not mix here optional components. Maybe on the dedicated sections to add something related with infrastructure requirements? It's mainly for Maps stack...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I would not add it here but to corresponding sections if we have ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we don't have a maps stack section (yet)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's create a ticket at least for not to forget