nexo/services/core/compose/docker-compose.yml

64 lines
1.9 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
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_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_EMAILSETTINGS_PUSHNOTIFICATIONSERVER=http://push-proxy:8066
ports:
- "${NEXO_CORE_PORT:-8065}:8065"
networks:
- net_nexo_core
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:-8066}:8066"
networks:
- net_nexo_core
networks:
net_nexo_core:
name: net_nexo_core