Skip to content

Commit e1743fe

Browse files
committed
added volumes
1 parent 6742d00 commit e1743fe

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,3 @@ ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.con
3535

3636
## SET WORKDIR PATH
3737
WORKDIR /var/www
38-
39-
VOLUME ['/var/lib/mysql', '/var/log', '/var/www', '/root']

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ services:
88
- "${SUPERVISOR_PORT}:9001"
99
volumes:
1010
- ../:/var/www
11+
- /root
12+
- /var/lib/mysql
13+
- /var/log

opt/installer/mysql-installer.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ echo "Mysql installer starting..."
1818
service mysql start
1919

2020
mysql -e "CREATE DATABASE laravel /*\!40100 DEFAULT CHARACTER SET utf8 */;"
21-
mysql -e "CREATE USER 'root'@'%' IDENTIFIED BY '';"
22-
mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '';"
21+
mysql -e "CREATE USER 'root'@'localhost' IDENTIFIED BY '';"
22+
mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '';"
23+
mysql -e "UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE User='root';"
2324
mysql -e "FLUSH PRIVILEGES;"

storage/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data/*
2+
log/*
3+
root/*

0 commit comments

Comments
 (0)