Moved volume container definitions
I've placed the `application` and `data` directories into a `volumes` subdirectory. The top level `data` directory is now used for storing the data used by the database (and other, if any) containers. The `data` directory has also been added to the `.gitignore` file to prevent accidental pushing of user data.
This commit is contained in:
parent
42d63236f1
commit
14cbe9f935
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/logs
|
/logs
|
||||||
|
/data
|
||||||
.env
|
.env
|
@ -9,7 +9,7 @@ services:
|
|||||||
context: ./php-fpm
|
context: ./php-fpm
|
||||||
dockerfile: Dockerfile-70
|
dockerfile: Dockerfile-70
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- application
|
- volumes_data
|
||||||
expose:
|
expose:
|
||||||
- "9000"
|
- "9000"
|
||||||
links:
|
links:
|
||||||
@ -17,30 +17,30 @@ services:
|
|||||||
|
|
||||||
### Laravel Application Code Container ######################
|
### Laravel Application Code Container ######################
|
||||||
|
|
||||||
application:
|
volumes_source:
|
||||||
build: ./application
|
build: ./volumes/application
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/var/www/laravel
|
- ../:/var/www/laravel
|
||||||
|
|
||||||
### Databases Data Container ################################
|
### Databases Data Container ################################
|
||||||
|
|
||||||
data:
|
volumes_data:
|
||||||
build: ./data
|
build: ./volumes/data
|
||||||
volumes:
|
volumes:
|
||||||
- ./mysql:/var/lib/mysql
|
- ./data/mysql:/var/lib/mysql
|
||||||
- ./postgres:/var/lib/postgres
|
- ./data/postgres:/var/lib/postgres
|
||||||
- ./mariadb:/var/lib/mariadb
|
- ./data/mariadb:/var/lib/mariadb
|
||||||
- ./memcached:/var/lib/memcached
|
- ./data/memcached:/var/lib/memcached
|
||||||
- ./redis:/data
|
- ./data/redis:/data
|
||||||
- ./neo4j:/var/lib/neo4j/data
|
- ./data/neo4j:/var/lib/neo4j/data
|
||||||
- ./mongo:/data/db
|
- ./data/mongo:/data/db
|
||||||
|
|
||||||
### Nginx Server Container ##################################
|
### Nginx Server Container ##################################
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
build: ./nginx
|
build: ./nginx
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- application
|
- volumes_source
|
||||||
volumes:
|
volumes:
|
||||||
- ./logs/nginx/:/var/log/nginx
|
- ./logs/nginx/:/var/log/nginx
|
||||||
ports:
|
ports:
|
||||||
@ -54,7 +54,7 @@ services:
|
|||||||
mysql:
|
mysql:
|
||||||
build: ./mysql
|
build: ./mysql
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- volumes_data
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
environment:
|
environment:
|
||||||
@ -68,7 +68,7 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
build: ./postgres
|
build: ./postgres
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- volumes_data
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
environment:
|
||||||
@ -81,7 +81,7 @@ services:
|
|||||||
mariadb:
|
mariadb:
|
||||||
build: ./mariadb
|
build: ./mariadb
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- volumes_data
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
environment:
|
environment:
|
||||||
@ -100,7 +100,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NEO4J_AUTH=homestead:secret
|
- NEO4J_AUTH=homestead:secret
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- volumes_data
|
||||||
|
|
||||||
### MongoDB Container #######################################
|
### MongoDB Container #######################################
|
||||||
|
|
||||||
@ -109,14 +109,14 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- volumes_data
|
||||||
|
|
||||||
### Redis Container #########################################
|
### Redis Container #########################################
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
build: ./redis
|
build: ./redis
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- volumes_data
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ services:
|
|||||||
memcached:
|
memcached:
|
||||||
build: ./memcached
|
build: ./memcached
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- data
|
- volumes_data
|
||||||
ports:
|
ports:
|
||||||
- "11211:11211"
|
- "11211:11211"
|
||||||
links:
|
links:
|
||||||
@ -158,7 +158,7 @@ services:
|
|||||||
args:
|
args:
|
||||||
- INSTALL_PRESTISSIMO=${INSTALL_PRESTISSIMO}
|
- INSTALL_PRESTISSIMO=${INSTALL_PRESTISSIMO}
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- application
|
- volumes_data
|
||||||
tty: true
|
tty: true
|
||||||
|
|
||||||
### Add more Containers below ###############################
|
### Add more Containers below ###############################
|
||||||
|
Loading…
Reference in New Issue
Block a user