Move around docker storage folders/config

This commit is contained in:
Nabeel Shahzad 2019-06-19 12:41:42 -04:00
parent 09307443f9
commit c7376a59f0
7 changed files with 8 additions and 4 deletions

View File

@ -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 {} +

View File

@ -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