Files
mostlymatter/docker-compose.yml
Carlos Tadeu Panato Junior c927fb9d50 add docker-compose for ci (#11795)
* add docker-compose for ci

* docker-compose logs does not have the option to set the dc file

* leverage docker-compose extends

This moves the developer `docker-compose.yml` to the root, extending the `build/docker-compose.yml` and overriding the `container_name` to preserve compatibility with the older, non-docker-compose setup.

Note that this required downgrading to docker-compose 2.4's file format (still supported by the newer tooling) due to the long and frustrating converstaion at https://github.com/moby/moby/issues/31101.

* remove -f docker-compose-ci.yml references
2019-08-06 08:46:53 +02:00

55 строки
1.3 KiB
YAML

version: '2.4'
services:
mysql:
container_name: mattermost-mysql
extends:
file: build/docker-compose.yml
service: mysql
postgres:
container_name: mattermost-postgres
extends:
file: build/docker-compose.yml
service: postgres
minio:
container_name: mattermost-minio
extends:
file: build/docker-compose.yml
service: minio
inbucket:
container_name: mattermost-inbucket
extends:
file: build/docker-compose.yml
service: inbucket
openldap:
container_name: mattermost-openldap
extends:
file: build/docker-compose.yml
service: openldap
elasticsearch:
container_name: mattermost-elasticsearch
extends:
file: build/docker-compose.yml
service: elasticsearch
redis:
container_name: mattermost-redis
extends:
file: build/docker-compose.yml
service: redis
start_dependencies:
image: mattermost/mattermost-wait-for-dep:latest
networks:
- mm-test
depends_on:
- mysql
- postgres
- minio
- inbucket
- openldap
- elasticsearch
- redis
command: postgres:5432 mysql:3306 minio:9000 inbucket:10080 openldap:389 elasticsearch:9200 redis:6379
networks:
mm-test:
driver: bridge