You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/server/environment/index.md
+15-9Lines changed: 15 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Configure environment
2
2
3
-
There are several application settings which can be changed via <GitHubRepodesc="config variables"id="MerginMaps/server/blob/master/.prod.env" />. Some of them have defaults and some of them need to be modified, particularly those with required placeholders (marked with ⭐️ below).
3
+
There are several application settings which can be changed via <GitHubRepodesc="enterprise edition config variables"id="MerginMaps/server/blob/master/deployment/enterprise/.env.template" /> or <GitHubRepodesc="community edition config variables"id="MerginMaps/server/blob/master/deployment/enterprise/.env.template" />. Some of them have defaults and some of them need to be modified, particularly those with required placeholders (marked with ⭐️ below).
4
4
5
5
#### Server basics
6
6
Variables marked with star ⭐️ need to be modified for production use.
@@ -116,15 +116,21 @@ Other settings related to data management.
116
116
|`DELETED_PROJECT_EXPIRATION`| integer |`7`| Lifetime in days for deleted projects. Expired projects are removed permanently without possibility to restore afterwards. |
117
117
|`PROJECT_ACCESS_REQUEST`| integer |`604800`| Lifetime of active project access request in seconds. |
118
118
|`TEMP_EXPIRATION`| integer |`7`| Time in days after files in a temporary folder are permanently deleted. |
119
-
119
+
120
120
121
121
#### Celery asynchronous tasks
122
122
Mergin Maps is using Celery and Redis to perform asynchronous tasks or doing regular jobs.
|`BROKER_URL` ⭐️ | string |`redis://merginmaps-redis:6379/0`| Connection details to celery message broker. If non-default, it should match definition in `docker-compose` file. |
127
-
|`CELERY_RESULT_BACKEND`| string |`redis://merginmaps-redis:6379/0`| Connection details to celery result back-end broker. If non-default, it should match definition in `docker-compose` file. |
128
-
|`CELERYD_CONCURRENCY`| integer | All CPU | Number of child processes. As rule of thumb do not use all available CPUs. |
129
-
|`CELERYD_PREFETCH_MULTIPLIER`| integer | 4 | The number of messages to prefetch at a time multiplied by the number of concurrent processes. Default is `4`. If you want to disable this feature set it to `1`. |
130
-
|`CELERY_ACKS_LATE`| boolean | False | If `True`, means tasks will be transmitted as execute, AFTER they are finished, not 'right before'. |
|`BROKER_URL`|string|`redis://merginmaps-redis:6379/0`| Connection details to celery message broker. If non-default, it should match definition in `docker-compose` file. |
127
+
|`CELERY_RESULT_BACKEND`|string|`redis://merginmaps-redis:6379/0`| Connection details to celery result back-end broker. If non-default, it should match definition in `docker-compose` file. |
|`MAPS_ENABLED`| boolean |`true`| Flag to enable webmaps |
135
+
|`VECTOR_TILES_URL`| string |`https://tiles-ee.merginmaps.com/data/default/{z}/{x}/{y}.pbf`| URL to vector tiles which are used as basemap layer in webmaps |
136
+
|`VECTOR_TILES_STYLE_URL`| string |`https://tiles-ee.merginmaps.com/styles/default.json`| URL to vector tiles style |
Copy file name to clipboardExpand all lines: src/server/install/index.md
+31-5Lines changed: 31 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -26,22 +26,48 @@ Afterwards, you can follow [this guide](./ee/) to retrieve your <EnterprisePlatf
26
26
27
27
::: warning Enable <MainPlatformName /> Telemetry
28
28
Make sure you follow deployment guidelines to <b>ensure any firewalls in your infrastructure are configured to allow the [`call-home`](../administer/#telemetry-service) functionality to send usage data</b>.
29
+
:::
29
30
30
31
## Deployment
31
32
32
33
Follow these steps to run a local <MainPlatformName /> instance.
33
34
35
+
Clone the <MainPlatformName /> github repository locally or download <GitHubRepoid="MerginMaps/server/blob/master/deployment/"desc="deployment folder" />.
36
+
```bash
37
+
$ git clone git@github.com:MerginMaps/server.git
38
+
```
39
+
40
+
Locate yourself on the proper <MainPlatformName /> edition.
41
+
```shell
42
+
# For community edition
43
+
cd deployment/community
44
+
45
+
# For enterprise edition
46
+
cd deployment/enterprise
47
+
```
48
+
34
49
### Start docker containers
35
50
36
-
Provided that `docker` and `docker-compose` are installed on your host, running <MainPlatformName /> stack should be as simple as running `docker-compose`. However, before doing that you would need to [configure](../environment/) your server setup via environment variables in <GitHubRepodesc=".prod.env"id="MerginMaps/server/blob/master/.prod.env" /> file.
51
+
Provided that `docker` and `docker-compose` are installed on your host, running <MainPlatformName /> stack should be as simple as running `docker-compose`. However, before doing that you would need to [configure](../environment/) your server setup via environment variables in `.prod.env` file.
52
+
If you have not created this file yet, please do so from the provided `.env.template` file provided.
53
+
54
+
```shell
55
+
cp .env.template .prod.env
56
+
```
37
57
38
58
Once configured, you can run:
39
59
```shell
40
-
$ mkdir -p projects # or wherever you set it to be
60
+
# For community edition
41
61
$ mkdir -p mergin_db # or wherever you set it to be
42
-
$ sudo chown -R 901:999 ./projects/
43
-
$ sudo chmod g+s ./projects/
44
-
$ docker-compose -f docker-compose.yml up
62
+
$ sh ../common/set_permissions.sh projects
63
+
$ docker-compose -f docker-compose.yml up -d
64
+
65
+
# For enterprise edition
66
+
$ mkdir -p mergin-db-enterprise # or wherever you set it to be
67
+
$ sh ../common/set_permissions.sh data
68
+
$ sh ../common/set_permissions.sh map_data
69
+
$ docker-compose -f docker-compose.yml up -d
70
+
$ docker-compose -f docker-compose.maps.yml up -d # Run maps stack separately
Copy file name to clipboardExpand all lines: src/server/security/index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Further security enhancements should be implemented by experts in accordance to
8
8
:::
9
9
For security and privacy reasons <MainPlatformName /> deployments should enable HTTPS secured connection via certificate file.
10
10
11
-
We provide a template configuration file <GitHubRepoid="MerginMaps/server/blob/master/ssl-proxy.conf"desc="ssl-proxy.conf" />as base for your configuration.
11
+
We provide a template configuration file <GitHubRepoid="MerginMaps/server/blob/master/deployment/common/ssl-proxy.conf"desc="ssl-proxy.conf" />as base for your configuration.
Copy file name to clipboardExpand all lines: src/server/upgrade/index.md
+59-7Lines changed: 59 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,56 @@ Make sure to always back up your database data before doing a migration.
11
11
[[toc]]
12
12
13
13
14
+
## Migration guide from 2025.2.x to 2025.3.x
15
+
16
+
<MigrationTypetype="EE" />
17
+
18
+
::: tip Changes on deployment behaviour
19
+
Release 2025.3.x brings some changes on <MainPlatformName /> docker compose orchestration deployment procedure.
20
+
:::
21
+
22
+
Get the latest <GitHubRepoid="MerginMaps/server/blob/master/deployment/enterprise/docker-compose.yml"desc="docker-compose file" /> or update docker images manually to version `2025.3.0`.
23
+
Perform the migration:
24
+
25
+
1. Stop your running docker containers
26
+
```bash
27
+
$ docker compose -f docker-compose.yml down # or similarly, based on your previous deployment
28
+
# INFO: After shutdown update the docker-compose.yml file to latest release
29
+
```
30
+
2. Please clone the <GitHubRepoid="MerginMaps/server/blob/master/"desc="server repository" /> or download <GitHubRepoid="MerginMaps/server/blob/master/deployment/"desc="deployment folder" />
31
+
```bash
32
+
$ cd server/deployment/enterprise
33
+
```
34
+
3. If you plan to use the new webmaps stacks, adapt your existing `.prod.env` and `docker-compose.yml` files. Move/copy them to the `enterprise` deployment folder
35
+
```bash
36
+
$ cp /some/path/.prod.env .# assuming you are located in `server/deployment/enterprise`
37
+
$ cp /some/path/docker-compose.yml .# assuming you are located in `server/deployment/enterprise`
38
+
```
39
+
4. Start up your docker containers
40
+
```bash
41
+
$ docker compose -f docker-compose.yml -d up # or similarly, based on your deployment
42
+
$ docker compose -f docker-compose.maps.yml -d up # If you want to deploy webmaps stack
43
+
```
44
+
5. Check that you are on correct versions (`ba5051218de4`, `ba5ae5972c4a`).
45
+
```bash
46
+
$ docker exec merginmaps-server flask db current
47
+
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
48
+
INFO [alembic.runtime.migration] Will assume transactional DDL.
49
+
ba5051218de4 (head)
50
+
ba5ae5972c4a (head)
51
+
```
52
+
53
+
- If you do not see the version numbers at all, run the following commands:
54
+
```bash
55
+
$ docker exec merginmaps-server flask db stamp ba5051218de4
56
+
$ docker exec merginmaps-server flask db stamp ba5ae5972c4a
57
+
```
58
+
6. Run the database migration:
59
+
```bash
60
+
$ docker exec merginmaps-server flask db upgrade community@5ad13be6f7ef
61
+
$ docker exec merginmaps-server flask db upgrade enterprise@819e6b20ee93
62
+
```
63
+
14
64
## Migration guide from 2024.2.x to 2025.2.x (CE)
15
65
16
66
::: tip Before you upgrade!
@@ -21,7 +71,7 @@ Previous individual `server` container is replaced by 3 service dedicated contai
21
71
22
72
<MigrationType type="CE" />
23
73
24
-
Get the latest <GitHubRepoid="MerginMaps/server/blob/master/docker-compose.yml"desc="docker-compose file" /> or update docker images manually to version `2025.2.2`.
74
+
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/deployment/community/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2025.2.2`.
25
75
Perform the migration:
26
76
27
77
1. Stop your running docker containers
@@ -34,6 +84,7 @@ Perform the migration:
34
84
```bash
35
85
SECURITY_EMAIL_SALT='<YOUR STRONG HASH>'
36
86
SECURITY_BEARER_SALT='<YOUR STRONG HASH>'
87
+
PORT=5000
37
88
```
38
89
39
90
3. Start up your docker containers
@@ -80,7 +131,7 @@ Previous individual `server` container is replaced by 3 service dedicated contai
80
131
81
132
<MigrationType type="EE" />
82
133
83
-
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2025.2.0`.
134
+
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/deployment/enterprise/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2025.2.0`.
84
135
Perform the migration:
85
136
86
137
1. Stop your running docker containers and build the new images
@@ -93,6 +144,7 @@ Perform the migration:
93
144
```bash
94
145
SECURITY_EMAIL_SALT='<YOUR STRONG HASH>'
95
146
SECURITY_BEARER_SALT='<YOUR STRONG HASH>'
147
+
PORT=5000
96
148
```
97
149
98
150
3. Start up your docker containers
@@ -131,7 +183,7 @@ Perform the migration:
131
183
132
184
## Migration guide from 2024.3.x to 2024.4.x
133
185
134
-
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2024.4.0`.
186
+
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/deployment/enterprise/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2024.4.0`.
135
187
Perform the migration:
136
188
137
189
<MigrationType type="EE" />
@@ -163,7 +215,7 @@ Perform the migration:
163
215
164
216
## Migration guide from 2024.2.x to 2024.3.x
165
217
166
-
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2024.3.0`.
218
+
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/deployment/enterprise/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2024.3.0`.
167
219
Perform the migration:
168
220
169
221
<MigrationType type="EE" />
@@ -194,7 +246,7 @@ Perform the migration:
194
246
195
247
## Migration guide from 2023.6.1 to 2024.2.x (CE)
196
248
197
-
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually.
249
+
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/deployment/community/docker-compose.yml" desc="docker-compose file" /> or update docker images manually.
198
250
199
251
<MigrationType type="CE" />
200
252
Update image to `2024.2.2` and perform the migration:
@@ -259,7 +311,7 @@ Update image to `2024.2.1` and perform the migration:
259
311
260
312
-----
261
313
262
-
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2023.6.1`.
314
+
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/deployment/community/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2023.6.1`.
0 commit comments