change app mapping directory from www/laravel to www

also add sample to show facilitate setup for multiple sites
This commit is contained in:
Mahmoud Zalt 2016-10-31 19:49:48 -04:00
parent 28130c5907
commit 739cc31f4c

View File

@ -2,6 +2,14 @@ version: '2'
services: services:
### Applications Code Container ######################
volumes_source:
image: tianon/true
volumes:
- ../:/var/www
# - ../sample/:/var/www/sample
### Workspace Utilities Container ########################### ### Workspace Utilities Container ###########################
workspace: workspace:
@ -288,19 +296,13 @@ services:
links: links:
- php-fpm - php-fpm
### Laravel Application Code Container ######################
volumes_source:
image: tianon/true
volumes:
- ../:/var/www/laravel
### Databases Data Container ################################ ### Databases Data Container ################################
volumes_data: volumes_data:
image: tianon/true image: tianon/true
volumes: volumes:
- ./data/mysql:/var/lib/mysql - ./data/mysql:/var/lib/mysql
- ./databases:/docker-entrypoint-initdb.d
- ./data/postgres:/var/lib/postgresql/data - ./data/postgres:/var/lib/postgresql/data
- ./data/memcached:/var/lib/memcached - ./data/memcached:/var/lib/memcached
- ./data/redis:/data - ./data/redis:/data