Skip to content

Commit

Permalink
add mariadb 10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Soifou committed Feb 13, 2019
1 parent ff05cec commit 6b7720f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ alias lamp-fpm5.3="lamp stop php && lamp rm -f php && lamp -f $LEMP_REPO/docker-
# switch to different mariadb versions
alias lamp-mariadb="lamp stop db && lamp rm -f db && lamp up -d db"
alias lamp-mariadb10.1="lamp stop db && lamp rm -f db && lamp -f $LEMP_REPO/docker-compose.mariadb10.1.yml up -d db"
alias lamp-mariadb10.2="lamp stop db && lamp rm -f db && lamp -f $LEMP_REPO/docker-compose.mariadb10.2.yml up -d db"
```

Worflow example:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.mariadb10.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3.6'
services:
db:
image: soifou/mariadb-alpine
image: wodby/mariadb:10.2
# to persist databases, uncomment below
# volumes:
# for macOS
Expand Down
14 changes: 14 additions & 0 deletions docker-compose.mariadb10.2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
version: '3.6'
services:
db:
image: soifou/mariadb-alpine
# to persist databases, uncomment below
# volumes:
# for macOS
# - /var/lib/boot2docker/mariadb:/data/db/mysql
# for linux
# - /wherever/u/want:/data/db/mysql
environment:
DB_USER: root
DB_PASS: root
2 changes: 1 addition & 1 deletion docker-compose.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- lamp-network

db:
image: wodby/mariadb:10.2
image: wodby/mariadb:10.3
container_name: lamp_db
# to persist databases, uncomment below
# volumes:
Expand Down

0 comments on commit 6b7720f

Please sign in to comment.