From 741363d9d4fb554d1d885876ef232343945f80a8 Mon Sep 17 00:00:00 2001 From: toki Date: Tue, 26 May 2026 10:50:16 +0900 Subject: [PATCH] Prepare core compose for remote test deployment --- services/core/compose/.env.example | 4 ++++ services/core/compose/README.md | 3 +++ services/core/compose/docker-compose.yml | 19 +++++++++++++++---- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 services/core/compose/.env.example diff --git a/services/core/compose/.env.example b/services/core/compose/.env.example new file mode 100644 index 00000000..31ac5de2 --- /dev/null +++ b/services/core/compose/.env.example @@ -0,0 +1,4 @@ +NEXO_DB_PASSWORD=mmuser_password +NEXO_SITE_URL=http://localhost:18065 +NEXO_CORE_PORT=18065 +NEXO_PUSH_PROXY_PORT=18066 diff --git a/services/core/compose/README.md b/services/core/compose/README.md index 8d799e97..0ec43bfc 100644 --- a/services/core/compose/README.md +++ b/services/core/compose/README.md @@ -5,6 +5,7 @@ This compose file mirrors the current Mattermost-based runtime shape inside the ```sh cd services/core/compose +cp .env.example .env docker compose up ``` @@ -13,3 +14,5 @@ Place push-proxy configuration under `services/core/data/push-proxy/config/mattermost-push-proxy.json` when FCM smoke testing is needed. +The default host ports are `18065` for core and `18066` for push-proxy so this +test deployment can run beside the existing Mattermost service. diff --git a/services/core/compose/docker-compose.yml b/services/core/compose/docker-compose.yml index 7c8f6fec..774324a6 100644 --- a/services/core/compose/docker-compose.yml +++ b/services/core/compose/docker-compose.yml @@ -18,6 +18,10 @@ services: interval: 10s timeout: 5s retries: 5 + logging: + options: + max-size: "10m" + max-file: "3" core: image: mattermost/mattermost-team-edition:11.4.2 @@ -37,12 +41,16 @@ services: environment: - MM_DBSETTINGS_DRIVERNAME=postgres - MM_DBSETTINGS_DATASOURCE=postgres://mmuser:${NEXO_DB_PASSWORD:-mmuser_password}@db:5432/mattermost?sslmode=disable&connect_timeout=10 - - MM_SERVICESETTINGS_SITEURL=${NEXO_SITE_URL:-http://localhost:8065} + - MM_SERVICESETTINGS_SITEURL=${NEXO_SITE_URL:-http://localhost:18065} - MM_EMAILSETTINGS_PUSHNOTIFICATIONSERVER=http://push-proxy:8066 ports: - - "${NEXO_CORE_PORT:-8065}:8065" + - "${NEXO_CORE_PORT:-18065}:8065" networks: - net_nexo_core + logging: + options: + max-size: "20m" + max-file: "5" push-proxy: image: mattermost/mattermost-push-proxy:latest @@ -54,11 +62,14 @@ services: - ../data/push-proxy/config:/mattermost-push-proxy/config:ro - ../data/push-proxy/logs:/mattermost-push-proxy/logs ports: - - "${NEXO_PUSH_PROXY_PORT:-8066}:8066" + - "${NEXO_PUSH_PROXY_PORT:-18066}:8066" networks: - net_nexo_core + logging: + options: + max-size: "10m" + max-file: "3" networks: net_nexo_core: name: net_nexo_core -