Skip to content

Commit d53a57b

Browse files
committed
Give more background to infrastructure changes on release 2025.2.0 #569
1 parent 70e1ade commit d53a57b

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ services:
88
working_dir: "/docs"
99
command: /bin/sh -c 'yarn install && yarn dev'
1010
ports:
11-
- 8080:8080
11+
- 8081:8080

src/server/upgrade/index.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,34 @@ Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml"
1616
Perform the migration:
1717

1818
<MigrationType type="EE" />
19+
::: tip Before you upgrade!
20+
Release 2025.2.0 brings significant changes on <MainPlatformName /> docker compose orchestration infrastructure.
1921

20-
1. Double check if below environment variables are available and filled in `.prod.env` environment file. If not, add them.
22+
Previous individual `server` container is replaced by 3 service dedicated containers that split the core components of <MainPlatformName />, `server-gunicorn` the app, `celery-beat` Celery task scheduler and `celery-worker` a dedicated worker container for Celery tasks.
23+
:::
24+
25+
1. Stop your running docker containers and build the new images
26+
```bash
27+
$ docker compose -f docker-compose.yml down # or similarly, based on your deployment
28+
# INFO: After shutdown update the docker-compose.yml file to latest release
29+
$ docker compose -f docker-compose build # or similarly, based on your deployment
30+
```
31+
32+
2. Double check if below environment variables are available and filled in `.prod.env` environment file. If not, add them.
2133

2234
```bash
2335
SECURITY_EMAIL_SALT='<YOUR STRONG HASH>'
2436
SECURITY_BEARER_SALT='<YOUR STRONG HASH>'
2537
```
2638

27-
2. Start up your docker containers
39+
3. Start up your docker containers
2840
```bash
29-
$ docker-compose -f docker-compose.yml up # or similarly, based on your deployment
41+
$ docker compose -f docker-compose.yml -d up # or similarly, based on your deployment
3042
```
3143

32-
3. Check that you are on correct versions (`07f2185e2428`, `df5b4efdae7b`).
44+
4. Check that you are on correct versions (`07f2185e2428`, `df5b4efdae7b`).
3345
```bash
34-
$ docker exec merginmaps-server flask db current
46+
$ docker compose exec server flask db current
3547
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
3648
INFO [alembic.runtime.migration] Will assume transactional DDL.
3749
07f2185e2428 (head)
@@ -40,14 +52,14 @@ Perform the migration:
4052

4153
- If you do not see the version numbers at all, run the following commands:
4254
```bash
43-
$ docker exec merginmaps-server flask db stamp 07f2185e2428
44-
$ docker exec merginmaps-server flask db stamp df5b4efdae7b
55+
$ docker compose exec server flask db stamp 07f2185e2428
56+
$ docker compose exec server flask db stamp df5b4efdae7b
4557
```
4658

47-
4. Run the database migration:
59+
5. Run the database migration:
4860
```bash
49-
$ docker exec merginmaps-server flask db upgrade community@ba5051218de4
50-
$ docker exec merginmaps-server flask db upgrade enterprise@ba5ae5972c4a
61+
$ docker compose exec server flask db upgrade community@ba5051218de4
62+
$ docker compose exec server flask db upgrade enterprise@ba5ae5972c4a
5163
```
5264

5365

0 commit comments

Comments
 (0)