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: ${NEXO_CORE_IMAGE:-toki-labs.com:5050/nexo/mattermost:latest} platform: linux/arm64 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: ${NEXO_PUSH_PROXY_IMAGE:-toki-labs.com:5050/nexo/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 ipam: driver: default config: - subnet: 172.38.0.0/16