-
Notifications
You must be signed in to change notification settings - Fork 22
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
Changes from all commits
1275da6
79fdcb6
a2c8d74
22f54bf
d1f1482
d8a79ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,35 @@ 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 full compatibility with Docker, since <MainPlatformName /> is deployed by default with `docker compose`. | ||
|
|
||
| A low-latency, high-bandwidth environment is preferred due to the volume of data needed to perform synchronisation with <MainPlatformName />. This is especially important on large projects with hundreds of megabytes in between syncs. | ||
|
|
||
|
|
||
| ### Infrastructure overview | ||
|
Collaborator
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. what about maps / SSO stack, shall we have something similar there?
Contributor
Author
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 would not mix here optional components. Maybe on the dedicated sections to add something related with infrastructure requirements? It's mainly for Maps stack...
Collaborator
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. yes, I would not add it here but to corresponding sections if we have ones
Contributor
Author
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 believe we don't have a maps stack section (yet)
Collaborator
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. let's create a ticket at least for not to forget |
||
|
|
||
| * **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. It is also recommended to open `443` port if SSL is enabled. | ||
| All other infrastructure instances will work within the same docker network group, so no additional ports need to be managed on the firewall side. | ||
|
|
||
| ::: details Install Docker | ||
| Please, use the latest version of Docker and Docker Compose tools. | ||
| Follow the [official](https://docs.docker.com/engine/install/) guidelines in accordance with your OS system. | ||
| ::: | ||
|
|
||
| ## Mergin Maps CE Docker Images | ||
| <ServerType type="CE" /> | ||
|
|
@@ -60,7 +88,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 +98,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 +108,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 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.