25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00
xmpp.chapril.org-ejabberd/test/docker/docker-compose.yml
Stu Tomlinson b173ca2fd0 Fix docker DB initialization
The docker local copies of DB initialization scripts were out of sync
with the master copies. Instead of updating local copies, adjust docker
compose to reference master copies directly.

Also change docker config to use docker volumes instead of mounted
directories for all DB data.
2020-09-25 18:13:35 +01:00

60 lines
1.4 KiB
YAML

version: '3.7'
services:
mysql:
image: mysql:latest
container_name: ejabberd-mysql
volumes:
- mysqldata:/var/lib/mysql
- ../../sql/mysql.sql:/docker-entrypoint-initdb.d/mysql.sql: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
mssql:
image: mcr.microsoft.com/mssql/server
container_name: ejabberd-mssql
volumes:
- mssqldata:/var/opt/mssql
- ./db/mssql/initdb/initdb_mssql.sql:/initdb_mssql.sql:ro
- ../../sql/mssql.sql:/mssql.sql:ro
restart: always
ports:
- 1433:1433
environment:
ACCEPT_EULA: Y
SA_PASSWORD: ejabberd_Test1
postgres:
image: postgres:latest
container_name: ejabberd-postgres
volumes:
- pgsqldata:/var/lib/postgresql/data
- ../../sql/pg.sql:/docker-entrypoint-initdb.d/pg.sql: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
volumes:
mysqldata:
name: ejabberd-mysqldata
mssqldata:
name: ejabberd-mssqldata
pgsqldata:
name: ejabberd-pgsqldata