remove volumes container

This commit is contained in:
Mahmoud Zalt 2016-11-01 10:03:47 -04:00
parent f6d9ac6853
commit 9ab6d8fa15

View File

@ -2,7 +2,7 @@ version: '2'
services: services:
### Applications Code Container ###################### ### Applications Code Container #############################
volumes_source: volumes_source:
image: tianon/true image: tianon/true
@ -81,7 +81,7 @@ services:
links: links:
- php-fpm - php-fpm
### Apache Server Container ################################## ### Apache Server Container #################################
apache2: apache2:
build: build:
@ -113,8 +113,8 @@ services:
mysql: mysql:
build: ./mysql build: ./mysql
volumes_from: volumes:
- volumes_data - mysql:/var/lib/mysql
ports: ports:
- "3306:3306" - "3306:3306"
environment: environment:
@ -127,8 +127,8 @@ services:
mariadb: mariadb:
build: ./mariadb build: ./mariadb
volumes_from: volumes:
- volumes_data - mariadb
ports: ports:
- "3306:3306" - "3306:3306"
environment: environment:
@ -141,8 +141,8 @@ services:
postgres: postgres:
build: ./postgres build: ./postgres
volumes_from: volumes:
- volumes_data - postgres:/var/lib/postgresql/data
ports: ports:
- "5432:5432" - "5432:5432"
environment: environment:
@ -159,8 +159,8 @@ services:
- "1337:1337" - "1337:1337"
environment: environment:
- NEO4J_AUTH=homestead:secret - NEO4J_AUTH=homestead:secret
volumes_from: volumes:
- volumes_data - neo4j:/var/lib/neo4j/data
### MongoDB Container ####################################### ### MongoDB Container #######################################
@ -168,25 +168,26 @@ services:
build: ./mongo build: ./mongo
ports: ports:
- "27017:27017" - "27017:27017"
volumes_from: volumes:
- volumes_data - mongo:/data/db
### Redis Container ######################################### ### Redis Container #########################################
redis: redis:
build: ./redis build: ./redis
volumes_from: volumes:
- volumes_data - redis:/data
ports: ports:
- "6379:6379" - "6379:6379"
### Aerospike c Container ######################################### ### Aerospike c Container ###################################
aerospike: aerospike:
build: ./aerospike build: ./aerospike
volumes_from: volumes_from:
- workspace - workspace
- volumes_data volumes:
- aerospike:/opt/aerospike/data
ports: ports:
- "3000:3000" - "3000:3000"
- "3001:3001" - "3001:3001"
@ -198,8 +199,8 @@ services:
memcached: memcached:
build: ./memcached build: ./memcached
volumes_from: volumes:
- volumes_data - memcached:/var/lib/memcached
ports: ports:
- "11211:11211" - "11211:11211"
links: links:
@ -215,7 +216,7 @@ services:
links: links:
- php-fpm - php-fpm
### RabbitMQ Container #################################### ### RabbitMQ Container ######################################
rabbitmq: rabbitmq:
build: ./rabbitmq build: ./rabbitmq
@ -245,7 +246,8 @@ services:
build: ./caddy build: ./caddy
volumes_from: volumes_from:
- volumes_source - volumes_source
- volumes_data volumes:
- caddy:/root/.caddy
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
@ -256,7 +258,7 @@ services:
links: links:
- php-fpm - php-fpm
### phpMyAdmin Container ################################## ### phpMyAdmin Container ####################################
phpmyadmin: phpmyadmin:
build: ./phpmyadmin build: ./phpmyadmin
@ -265,8 +267,8 @@ services:
MYSQL_USER: homestead MYSQL_USER: homestead
MYSQL_PASSWORD: secret MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
volumes_from: volumes:
- volumes_data - phpmyadmin
ports: ports:
- "8080:80" - "8080:80"
links: links:
@ -275,7 +277,7 @@ services:
# for mariadb container # for mariadb container
# - "mariadb:db" # - "mariadb:db"
### pgAdmin Container ################################## ### pgAdmin Container #######################################
pgadmin: pgadmin:
build: ./pgadmin build: ./pgadmin
@ -284,33 +286,45 @@ services:
links: links:
- postgres - postgres
### ElasticSearch Container ################################## ### ElasticSearch Container #################################
elasticsearch: elasticsearch:
build: ./elasticsearch build: ./elasticsearch
volumes_from: volumes:
- volumes_data - elasticsearch-data:/usr/share/elasticsearch/data
- elasticsearch-pkugins:/usr/share/elasticsearch/data
ports: ports:
- "9200:9200" - "9200:9200"
- "9300:9300" - "9300:9300"
links: links:
- php-fpm - php-fpm
### Databases Data Container ################################ ### Volumes Setup ###########################################
volumes_data:
image: tianon/true
volumes: volumes:
- ./data/mysql:/var/lib/mysql mysql:
- ./data/postgres:/var/lib/postgresql/data driver: "local"
- ./data/memcached:/var/lib/memcached postgres:
- ./data/redis:/data driver: "local"
- ./data/neo4j:/var/lib/neo4j/data memcached:
- ./data/mongo:/data/db driver: "local"
- ./data/aerospike:/opt/aerospike/data redis:
- ./data/sessions:/sessions driver: "local"
- ./data/caddy:/root/.caddy neo4j:
- ./data/elasticsearch/data:/usr/share/elasticsearch/data driver: "local"
- ./data/elasticsearch/pkugins:/usr/share/elasticsearch/pkugins mariadb:
driver: "local"
### Add more Containers below ############################### mongo:
driver: "local"
phpmyadmin:
driver: "local"
aerospike:
driver: "local"
caddy:
driver: "local"
elasticsearch-data:
driver: "local"
elasticsearch-pkugins:
driver: "local"
sessions: ## nothing is connected to this (- ./data/sessions:/sessions)
driver: "local"