Skip to content

Commit c9f2aad

Browse files
authored
Merge pull request #664 from MerginMaps/663-remove-docker-compose-related-content
Update docs for Docker related content
2 parents 63e1cde + d8a79ad commit c9f2aad

File tree

3 files changed

+44
-13
lines changed

3 files changed

+44
-13
lines changed

scripts/wordlist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Skoda
144144
SLYR
145145
SSL
146146
Survey123
147+
synchronise
147148
TLS
148149
Transifex
149150
Trialing
@@ -232,6 +233,7 @@ openmaptiles
232233
openssl
233234
orthometric
234235
orthophoto
236+
orchestrator
235237
osm
236238
pbf
237239
peatlands
@@ -282,6 +284,7 @@ uncheck
282284
undoable
283285
url
284286
uuid
287+
vCPUS
285288
xcf
286289
xyz
287290
yml

src/server/install/index.md

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,35 @@ Installation guide will help you to install your <CommunityPlatformNameLink /> o
77

88
## Installation System Requirements
99

10-
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.
10+
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).
11+
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.
12+
A very conservative rule of thumb, regarding needed disk size would be `mergin maps project size * number of versions`.
13+
If you have a team size over 25 people and synchronise often your <MainPlatformName /> projects, consider a host with **4 vCPUS**.
14+
15+
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`.
16+
17+
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.
18+
19+
20+
### Infrastructure overview
21+
22+
* **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).
23+
* **Redis** - The caching and asynchronous task engine running on top of <MainPlatformName />
24+
* **Celery-Beat** - The Celery task orchestrator used by <MainPlatformName />
25+
* **Celery-Worker** - The Celery container responsible for workers that perform tasks on <MainPlatformName />
26+
* **Server** - The server backend instance of <MainPlatformName />
27+
* **Web** - The frontend instance for <MainPlatformName />
28+
* **Proxy** - NGINX instance serving <MainPlatformName /> in reverse proxy configuration.
29+
30+
### Firewall ports
31+
32+
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.
33+
All other infrastructure instances will work within the same docker network group, so no additional ports need to be managed on the firewall side.
34+
35+
::: details Install Docker
36+
Please, use the latest version of Docker and Docker Compose tools.
37+
Follow the [official](https://docs.docker.com/engine/install/) guidelines in accordance with your OS system.
38+
:::
1139

1240
## Mergin Maps CE Docker Images
1341
<ServerType type="CE" />
@@ -60,7 +88,7 @@ Then, edit the `.prod.env` file and provide values for all variables marked as r
6088

6189
### Start docker containers
6290

63-
Before proceeding, ensure you have both `docker` and `docker-compose` installed on your system.
91+
Before proceeding, ensure you have both `docker` and `docker compose` installed on your system.
6492

6593
Once your environment is configured, you can start the containers by running the following commands for the Community and Enterprise editions.
6694

@@ -70,7 +98,7 @@ Community edition stack:
7098
$ mkdir -p mergin_db # database data directory
7199
$ sh ../common/set_permissions.sh projects # application internal data directory
72100
$ sh ../common/set_permissions.sh diagnostic_logs # directory to persist diagnostic logs (optional)
73-
$ docker-compose -f docker-compose.yml up -d
101+
$ docker compose -f docker-compose.yml up -d
74102
```
75103

76104
Enterprise edition stack:
@@ -80,8 +108,8 @@ $ mkdir -p mergin-db-enterprise # database data directory
80108
$ sh ../common/set_permissions.sh data # application internal data directory
81109
$ sh ../common/set_permissions.sh map_data # maps data directory (neccessary for maps)
82110
$ sh ../common/set_permissions.sh diagnostic_logs # directory to persist diagnostic logs (optional)
83-
$ docker-compose -f docker-compose.yml up -d
84-
$ docker-compose -f docker-compose.maps.yml up -d # Run maps stack separately
111+
$ docker compose -f docker-compose.yml up -d
112+
$ docker compose -f docker-compose.maps.yml up -d # Run maps stack separately
85113
```
86114

87115
::: tip Diagnostic logs

src/server/upgrade/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Perform the migration:
242242
<MigrationType type="EE" />
243243
1. Start up your docker containers
244244
```bash
245-
$ docker-compose -f docker-compose.yml up # or similarly, based on your deployment
245+
$ docker compose -f docker-compose.yml up # or similarly, based on your deployment
246246
```
247247

248248
2. Check that you are on correct versions (`0e3fc92aeaaa`, `223e3be99e92`).
@@ -274,7 +274,7 @@ Perform the migration:
274274
<MigrationType type="EE" />
275275
1. Start up your docker containers
276276
```bash
277-
$ docker-compose -f docker-compose.yml up # or similarly, based on your deployment
277+
$ docker compose -f docker-compose.yml up # or similarly, based on your deployment
278278
```
279279

280280
2. Check that you are on correct versions (`a5d4defded55`, `223e3be99e92`).
@@ -306,7 +306,7 @@ Update image to `2024.2.2` and perform the migration:
306306

307307
1. Start up your docker containers
308308
```bash
309-
$ docker-compose -f docker-compose.yml up # or similarly, based on your deployment
309+
$ docker compose -f docker-compose.yml up # or similarly, based on your deployment
310310
```
311311

312312
2. Check that you are on correct versions (`35af0c8be41e`, `3a77058a2fd7`).
@@ -334,7 +334,7 @@ Update image to `2024.2.1` and perform the migration:
334334

335335
1. Start up your docker containers
336336
```bash
337-
$ docker-compose -f docker-compose.yml up # or similarly, based on your deployment
337+
$ docker compose -f docker-compose.yml up # or similarly, based on your deployment
338338
```
339339

340340
2. Check that you are on correct versions (`3a77058a2fd7`, `0d867687ab64`).
@@ -371,7 +371,7 @@ Perform the migration:
371371

372372
1. Start up your docker containers
373373
```bash
374-
$ docker-compose -f docker-compose.yml up # or similarly, based on your deployment
374+
$ docker compose -f docker-compose.yml up # or similarly, based on your deployment
375375
```
376376

377377
2. Check that you are on a correct version (`b6cb0a98ce20`)
@@ -395,7 +395,7 @@ Perform the migration:
395395
<MigrationType type="EE" />
396396
1. Start up your docker containers
397397
```bash
398-
$ docker-compose -f docker-compose.yml up # or similarly, based on your deployment
398+
$ docker compose -f docker-compose.yml up # or similarly, based on your deployment
399399
```
400400

401401
2. Check that you are on correct versions (`b6cb0a98ce20`, `0d867687ab64`)
@@ -440,7 +440,7 @@ $ docker exec mergin-db pg_dump -U postgres -Fc postgres > pg_backup.dump
440440

441441
4. Stop all running <MainPlatformName /> services (from project root folder)
442442
```bash
443-
$ docker-compose -f docker-compose.yml stop
443+
$ docker compose -f docker-compose.yml stop
444444
```
445445

446446
5. Pull the latest changes
@@ -488,7 +488,7 @@ There are few settings you may want to change values for:
488488

489489
7. Make sure projects volume mounts in `docker-compose` file still match (You can set up new volumes by following the [quick start guide](../install/)). Switch to new server version and PostgreSQL to at least version 12 (14 recommended) by running new docker containers:
490490
```bash
491-
$ docker-compose -f docker-compose.yml up
491+
$ docker compose -f docker-compose.yml up
492492
```
493493

494494
8. Restore backup from older PostgreSQL version, e.g.:

0 commit comments

Comments
 (0)