diff options
author | Mickael Remond <mremond@process-one.net> | 2019-05-07 17:59:05 +0200 |
---|---|---|
committer | Mickael Remond <mremond@process-one.net> | 2019-05-07 17:59:05 +0200 |
commit | e427358e089864955d033305ab1bc0c6baff3c24 (patch) | |
tree | 43242b5f15c34b28df4ca17b72dcbc1afd6536fe /test/docker/docker-compose.yml | |
parent | Fix pubsub compliance XEP-0060 ยง 7.1.3.6 (#2864) (diff) |
Initial Docker environment to run ejabberd test suite
Diffstat (limited to 'test/docker/docker-compose.yml')
-rw-r--r-- | test/docker/docker-compose.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/test/docker/docker-compose.yml b/test/docker/docker-compose.yml new file mode 100644 index 000000000..e6026ac21 --- /dev/null +++ b/test/docker/docker-compose.yml @@ -0,0 +1,48 @@ +version: '3.7' + +services: + mysql: + image: mysql:latest + container_name: ejabberd-mysql + volumes: + - ./db/mysql/data:/var/lib/mysql + - ./db/mysql/initdb:/docker-entrypoint-initdb.d:ro + command: --default-authentication-plugin=mysql_native_password + restart: always + ports: + - 3306:3306 + environment: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: ejabberd_test + MYSQL_USER: ejabberd_test + MYSQL_PASSWORD: ejabberd_test + + postgres: + image: postgres:latest + container_name: ejabberd-postgres + volumes: + - ./db/postgres/data:/var/lib/postgresql/data + - ./db/postgres/initdb:/docker-entrypoint-initdb.d:ro + ports: + - 5432:5432 + environment: + POSTGRES_PASSWORD: ejabberd_test + POSTGRES_USER: ejabberd_test + POSTGRES_DB: ejabberd_test + + redis: + image: redis:latest + container_name: ejabberd-redis + ports: + - 6379:6379 + + riak: + image: ejabberd/riak:latest + container_name: ejabberd-riak + ports: + - 8087:8087 + - 8098:8098 + volumes: + - ./db/riak/data:/var/lib/riak + environment: + WAIT_FOR_ERLANG: 60 |