diff --git a/compose/mariadb.yml b/compose/mariadb.yml index d93c7b26c5..5a60c3ef05 100644 --- a/compose/mariadb.yml +++ b/compose/mariadb.yml @@ -1,14 +1,12 @@ mariadbdata: image: kollaglue/centos-rdo-mariadb-data - volumes: - - /var/lib/mysql:/var/lib/mysql - net: "host" - privileged: true + name: mariadbdata + mariadbapp: image: kollaglue/centos-rdo-mariadb-app + name: mariadbapp env_file: - openstack.env volumes_from: - mariadbdata net: "host" - privileged: true diff --git a/docker/mariadb-data/Dockerfile b/docker/mariadb-data/Dockerfile index 4f1a9b455c..a558313117 100644 --- a/docker/mariadb-data/Dockerfile +++ b/docker/mariadb-data/Dockerfile @@ -1,6 +1,8 @@ FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base MAINTAINER Kolla Project (https://launchpad.net/kolla) +VOLUME [ "/var/lib/mysql" ] + # Command needed to start the data container. # Note: data containers do not need to be persistent. CMD ["/bin/sh"]