mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
* feat: Migrate docker preview repo stuff in monorepo * docs: Update docs [skip ci] * config: Update configuration to minimum [skip ci]
18 lines
520 B
Bash
18 lines
520 B
Bash
#!/bin/bash
|
|
# Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
# See License.txt for license information.
|
|
|
|
echo "Starting PostgreSQL"
|
|
docker-entrypoint.sh -c 'shared_buffers=256MB' -c 'max_connections=300' &
|
|
|
|
until pg_isready -hlocalhost -p 5432 -U "$POSTGRES_USER" &> /dev/null; do
|
|
echo "postgres still not ready, sleeping"
|
|
sleep 5
|
|
done
|
|
|
|
echo "Updating CA certificates"
|
|
update-ca-certificates --fresh >/dev/null
|
|
|
|
echo "Starting platform"
|
|
cd mattermost
|
|
exec ./bin/mattermost --config=config/config_docker.json
|