improved php using current user instead of root, improved timeout limit

This commit is contained in:
2019-11-06 12:46:11 +01:00
parent ceaf3963b0
commit 5eb02ec37b
9 changed files with 121 additions and 21 deletions
+25
View File
@@ -111,6 +111,31 @@ sudo docker exec -it materiod8_mysql_1 bash
```
once inside the mysql container you can use mysql command to drop then create and load the db with your file
## Makefile
```makefile
build:
docker-compose build --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME)
buildnc:
docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME)
up:
docker-compose up -d
upbuild:
docker-compose up -d --build
down:
docker-compose down
php:
docker exec -it materiod8_php_1 bash
phplegacy:
docker exec -it materiod8_php-legacy_1 bash
```
# sources
https://www.ostraining.com/blog/drupal/docker/