77 lines
2.3 KiB
YAML
77 lines
2.3 KiB
YAML
name: nexo-core
|
|
|
|
services:
|
|
db:
|
|
image: postgres:15-alpine
|
|
container_name: nexo-core-db
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ../data/db:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=mattermost
|
|
- POSTGRES_USER=mmuser
|
|
- POSTGRES_PASSWORD=${NEXO_DB_PASSWORD:-mmuser_password}
|
|
networks:
|
|
- net_nexo_core
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U mmuser -d mattermost"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
logging:
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
core:
|
|
image: mattermost/mattermost-team-edition:11.4.2
|
|
platform: linux/amd64
|
|
container_name: nexo-core
|
|
restart: unless-stopped
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ../data/config:/mattermost/config
|
|
- ../data/data:/mattermost/data
|
|
- ../data/logs:/mattermost/logs
|
|
- ../data/plugins:/mattermost/plugins
|
|
- ../data/client-plugins:/mattermost/client/plugins
|
|
- ../data/bleve-indexes:/mattermost/bleve-indexes
|
|
environment:
|
|
- MM_SQLSETTINGS_DRIVERNAME=postgres
|
|
- MM_SQLSETTINGS_DATASOURCE=postgres://mmuser:${NEXO_DB_PASSWORD:-mmuser_password}@db:5432/mattermost?sslmode=disable&connect_timeout=10
|
|
- 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:18065}
|
|
- MM_EMAILSETTINGS_PUSHNOTIFICATIONSERVER=http://push-proxy:8066
|
|
ports:
|
|
- "${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
|
|
container_name: nexo-core-push-proxy
|
|
restart: unless-stopped
|
|
environment:
|
|
- MPNS_CONFIG=/mattermost-push-proxy/config/mattermost-push-proxy.json
|
|
volumes:
|
|
- ../data/push-proxy/config:/mattermost-push-proxy/config:ro
|
|
- ../data/push-proxy/logs:/mattermost-push-proxy/logs
|
|
ports:
|
|
- "${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
|