diff options
author | Stu Tomlinson <stu@nosnilmot.com> | 2020-09-25 18:13:35 +0100 |
---|---|---|
committer | Stu Tomlinson <stu@nosnilmot.com> | 2020-09-25 18:13:35 +0100 |
commit | b173ca2fd0d7cfb33a0c0ad613d6055709b2df98 (patch) | |
tree | 2d7c9e5ce2e75a64012c5e7fe8adad45e07f4702 /test/docker/docker-compose.yml | |
parent | log_rotate_date and log_rate_limit are deprecated since e4a8afb (#3382) (diff) |
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.
Diffstat (limited to 'test/docker/docker-compose.yml')
-rw-r--r-- | test/docker/docker-compose.yml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/docker/docker-compose.yml b/test/docker/docker-compose.yml index c6b800dad..7ce610eab 100644 --- a/test/docker/docker-compose.yml +++ b/test/docker/docker-compose.yml @@ -5,8 +5,8 @@ services: image: mysql:latest container_name: ejabberd-mysql volumes: - - ./db/mysql/data:/var/lib/mysql - - ./db/mysql/initdb:/docker-entrypoint-initdb.d:ro + - mysqldata:/var/lib/mysql + - ../../sql/mysql.sql:/docker-entrypoint-initdb.d/mysql.sql:ro command: --default-authentication-plugin=mysql_native_password restart: always ports: @@ -22,6 +22,8 @@ services: 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 @@ -33,8 +35,8 @@ services: image: postgres:latest container_name: ejabberd-postgres volumes: - - ./db/postgres/data:/var/lib/postgresql/data - - ./db/postgres/initdb:/docker-entrypoint-initdb.d:ro + - pgsqldata:/var/lib/postgresql/data + - ../../sql/pg.sql:/docker-entrypoint-initdb.d/pg.sql:ro ports: - 5432:5432 environment: @@ -49,4 +51,9 @@ services: - 6379:6379 volumes: + mysqldata: + name: ejabberd-mysqldata mssqldata: + name: ejabberd-mssqldata + pgsqldata: + name: ejabberd-pgsqldata |