Prepare core compose for remote test deployment
This commit is contained in:
parent
b6241fa6dd
commit
741363d9d4
3 changed files with 22 additions and 4 deletions
4
services/core/compose/.env.example
Normal file
4
services/core/compose/.env.example
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
NEXO_DB_PASSWORD=mmuser_password
|
||||
NEXO_SITE_URL=http://localhost:18065
|
||||
NEXO_CORE_PORT=18065
|
||||
NEXO_PUSH_PROXY_PORT=18066
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue