diff --git a/docker-cloud.yml b/docker-cloud.yml index 41eab55..a9aea65 100644 --- a/docker-cloud.yml +++ b/docker-cloud.yml @@ -36,8 +36,8 @@ hg-db: tags: - testing volumes_from: - - hg-db-data -hg-db-data: + - hg-db-data2 +hg-db-data2: image: 'busybox:latest' tags: - testing diff --git a/docker-compose.local.yml b/docker-compose.local.yml index b6f103b..c488b0e 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -15,7 +15,7 @@ web: db: image: 'mysql:5.7' volumes_from: - - db-data + - db-data2 ports: - "3306:3306" environment: @@ -23,7 +23,7 @@ db: - MYSQL_PASSWORD=new_password - MYSQL_ROOT_PASSWORD=new_passwordac - MYSQL_USER=admin -db-data: +db-data2: image: 'busybox:latest' volumes: - "/var/lib/mysql" diff --git a/docker-compose.yml b/docker-compose.yml index 4243fff..613f964 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,9 @@ hg-db: - MYSQL_USER=admin expose: - "3306" -db-data: + volumes_from: + - db-data2 +db-data2: image: 'busybox:latest' volumes: - "/var/lib/mysql"