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 .idea
.travis .travis
docker docker
resources/docker
tests tests
_ide_helper.php _ide_helper.php
.dpl .dpl
@ -90,6 +91,9 @@ if [ "$TRAVIS" = "true" ]; then
# clear any app specific stuff that might have been loaded in # 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 -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/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/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/sessions -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
find storage/framework/views -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: services:
app: app:
build: build:
context: ./docker/php context: ./resources/docker/php
environment: environment:
DB_HOST: mysql DB_HOST: mysql
REDIS_HOST: redis REDIS_HOST: redis
volumes: volumes:
- ./:/var/www - ./:/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: depends_on:
- nginx - nginx
- mysql - mysql
@ -21,7 +21,7 @@ services:
command: /bin/sh -c "exec nginx -g 'daemon off;'" command: /bin/sh -c "exec nginx -g 'daemon off;'"
volumes: volumes:
- ./:/var/www - ./:/var/www
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf - ./resources/docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports: ports:
- 80:80 - 80:80
@ -34,7 +34,7 @@ services:
MYSQL_ROOT_PASSWORD: MYSQL_ROOT_PASSWORD:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes: volumes:
- ./docker/data/mysql:/var/lib/mysql - ./storage/docker/data/mysql:/var/lib/mysql
ports: ports:
- 3306:3306 - 3306:3306