Skip to content

Commit

Permalink
setup new data container for DB, this build links to MySQL 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Gegere committed Mar 7, 2017
1 parent 067c366 commit 38627ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ web:
db:
image: 'mysql:5.7'
volumes_from:
- db-data
- db-data2
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=htmlgraphic
- MYSQL_PASSWORD=new_password
- MYSQL_ROOT_PASSWORD=new_passwordac
- MYSQL_USER=admin
db-data:
db-data2:
image: 'busybox:latest'
volumes:
- "/var/lib/mysql"
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 38627ed

Please sign in to comment.