9eb10f5cf3
Co-authored-by: francois-d <dfrancis2.primus.ca>
23 lines
762 B
YAML
23 lines
762 B
YAML
services:
|
|
- docker
|
|
|
|
before_install:
|
|
- docker build -t mattermost-prod-db db
|
|
- docker build -t mattermost-prod-app app
|
|
|
|
install:
|
|
- eval $BUILD
|
|
- sleep 30
|
|
|
|
env:
|
|
- BUILD="mkdir -p ./volumes/app/mattermost/{data,logs,config,plugins} && docker-compose up -d"
|
|
- BUILD="docker run -d --name db -e POSTGRES_USER=mmuser -e POSTGRES_PASSWORD=mmuser_password -e POSTGRES_DB=mattermost mattermost-prod-db && sleep 5 && docker run -d --link db -p 80:8000 --name app -e MM_USERNAME=mmuser -e MM_PASSWORD=mmuser_password mattermost-prod-app"
|
|
|
|
script:
|
|
- curl -sSf http://localhost > /dev/null
|
|
- docker ps -a | grep app | grep healthy
|
|
- docker ps -a | grep db | grep healthy
|
|
|
|
after_failure:
|
|
- timeout 3s docker-compose logs app db web
|