Move around docker storage folders/config
This commit is contained in:
parent
09307443f9
commit
c7376a59f0
@ -56,6 +56,7 @@ if [ "$TRAVIS" = "true" ]; then
|
||||
.idea
|
||||
.travis
|
||||
docker
|
||||
resources/docker
|
||||
tests
|
||||
_ide_helper.php
|
||||
.dpl
|
||||
@ -90,6 +91,9 @@ if [ "$TRAVIS" = "true" ]; then
|
||||
# clear any app specific stuff that might have been loaded in
|
||||
find storage/app -mindepth 1 -not -name '.gitignore' -not -name public -not -name import -print0 -exec rm -rf {} +
|
||||
find storage/app/public -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||
find storage/debugbar -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||
find storage/docker -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||
find storage/docker/data -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||
find storage/framework/cache -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||
find storage/framework/sessions -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||
find storage/framework/views -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
|
||||
|
@ -4,13 +4,13 @@ version: '3'
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ./docker/php
|
||||
context: ./resources/docker/php
|
||||
environment:
|
||||
DB_HOST: mysql
|
||||
REDIS_HOST: redis
|
||||
volumes:
|
||||
- ./:/var/www
|
||||
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
|
||||
- ./resources/docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
|
||||
depends_on:
|
||||
- nginx
|
||||
- mysql
|
||||
@ -21,7 +21,7 @@ services:
|
||||
command: /bin/sh -c "exec nginx -g 'daemon off;'"
|
||||
volumes:
|
||||
- ./:/var/www
|
||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./resources/docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||
ports:
|
||||
- 80:80
|
||||
|
||||
@ -34,7 +34,7 @@ services:
|
||||
MYSQL_ROOT_PASSWORD:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
||||
volumes:
|
||||
- ./docker/data/mysql:/var/lib/mysql
|
||||
- ./storage/docker/data/mysql:/var/lib/mysql
|
||||
ports:
|
||||
- 3306:3306
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user