Skip to content

Commit 38627ed

Browse files
author
Jason Gegere
committed
setup new data container for DB, this build links to MySQL 5.7
1 parent 067c366 commit 38627ed

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

docker-cloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ hg-db:
3636
tags:
3737
- testing
3838
volumes_from:
39-
- hg-db-data
40-
hg-db-data:
39+
- hg-db-data2
40+
hg-db-data2:
4141
image: 'busybox:latest'
4242
tags:
4343
- testing

docker-compose.local.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ web:
1515
db:
1616
image: 'mysql:5.7'
1717
volumes_from:
18-
- db-data
18+
- db-data2
1919
ports:
2020
- "3306:3306"
2121
environment:
2222
- MYSQL_DATABASE=htmlgraphic
2323
- MYSQL_PASSWORD=new_password
2424
- MYSQL_ROOT_PASSWORD=new_passwordac
2525
- MYSQL_USER=admin
26-
db-data:
26+
db-data2:
2727
image: 'busybox:latest'
2828
volumes:
2929
- "/var/lib/mysql"

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ hg-db:
1818
- MYSQL_USER=admin
1919
expose:
2020
- "3306"
21-
db-data:
21+
volumes_from:
22+
- db-data2
23+
db-data2:
2224
image: 'busybox:latest'
2325
volumes:
2426
- "/var/lib/mysql"

0 commit comments

Comments
 (0)