version: '3.8' services: postgres: image: postgres:14-alpine container_name: mattermost_postgres restart: unless-stopped ports: - "5432:5432" volumes: - ${COMPOSE_PROJECT_DIR:-D:/00_test/01}/volumes/postgres:/var/lib/postgresql/data environment: - POSTGRES_USER=mmuser - POSTGRES_PASSWORD=mmuser_password - POSTGRES_DB=mattermost healthcheck: test: ["CMD", "pg_isready", "-U", "mmuser"] interval: 10s timeout: 5s retries: 5 mattermost: image: mattermost/mattermost-team-edition:latest container_name: mattermost depends_on: - postgres restart: unless-stopped ports: - "8065:8065" volumes: - ${COMPOSE_PROJECT_DIR:-D:/00_test/01}/volumes/mattermost/config:/mattermost/config - ${COMPOSE_PROJECT_DIR:-D:/00_test/01}/volumes/mattermost/data:/mattermost/data - ${COMPOSE_PROJECT_DIR:-D:/00_test/01}/volumes/mattermost/logs:/mattermost/logs - ${COMPOSE_PROJECT_DIR:-D:/00_test/01}/volumes/mattermost/plugins:/mattermost/plugins - ${COMPOSE_PROJECT_DIR:-D:/00_test/01}/volumes/mattermost/client/plugins:/mattermost/client/plugins environment: - MM_SQLSETTINGS_DRIVERNAME=postgres - MM_SQLSETTINGS_DATASOURCE=postgres://mmuser:mmuser_password@postgres:5432/mattermost?sslmode=disable&connect_timeout=10 - MM_SERVICESETTINGS_SITEURL=http://localhost:8065