disabling unused services

This commit is contained in:
Arian Acosta 2017-07-15 09:05:29 -04:00
parent 9585a4a7ab
commit d83c9be2ea

View File

@ -130,64 +130,64 @@ services:
### Blackfire Container ################################# ### Blackfire Container #################################
blackfire: # blackfire:
image: blackfire/blackfire # image: blackfire/blackfire
environment: # environment:
- BLACKFIRE_SERVER_ID=${BLACKFIRE_SERVER_ID} # - BLACKFIRE_SERVER_ID=${BLACKFIRE_SERVER_ID}
- BLACKFIRE_SERVER_TOKEN=${BLACKFIRE_SERVER_TOKEN} # - BLACKFIRE_SERVER_TOKEN=${BLACKFIRE_SERVER_TOKEN}
depends_on: # depends_on:
- php-fpm # - php-fpm
networks: # networks:
- backend # - backend
### Apache Server Container ################################# ### Apache Server Container #################################
apache2: # apache2:
build: # build:
context: ./apache2 # context: ./apache2
args: # args:
- PHP_SOCKET=${PHP_SOCKET} # - PHP_SOCKET=${PHP_SOCKET}
volumes_from: # volumes_from:
- applications # - applications
volumes: # volumes:
- ${APACHE_HOST_LOG_PATH}:/var/log/apache2 # - ${APACHE_HOST_LOG_PATH}:/var/log/apache2
- ${APACHE_SITES_PATH}:/etc/apache2/sites-available # - ${APACHE_SITES_PATH}:/etc/apache2/sites-available
ports: # ports:
- "${APACHE_HOST_HTTP_PORT}:80" # - "${APACHE_HOST_HTTP_PORT}:80"
- "${APACHE_HOST_HTTPS_PORT}:443" # - "${APACHE_HOST_HTTPS_PORT}:443"
depends_on: # depends_on:
- php-fpm # - php-fpm
networks: # networks:
- frontend # - frontend
- backend # - backend
### HHVM Container ########################################## ### HHVM Container ##########################################
hhvm: # hhvm:
build: ./hhvm # build: ./hhvm
volumes_from: # volumes_from:
- applications # - applications
expose: # expose:
- "9000" # - "9000"
depends_on: # depends_on:
- workspace # - workspace
networks: # networks:
- frontend # - frontend
- backend # - backend
### Minio Container ######################################### ### Minio Container #########################################
minio: # minio:
build: ./minio # build: ./minio
volumes: # volumes:
- minio:/export # - minio:/export
ports: # ports:
- "${MINIO_PORT}:9000" # - "${MINIO_PORT}:9000"
environment: # environment:
- MINIO_ACCESS_KEY=access # - MINIO_ACCESS_KEY=access
- MINIO_SECRET_KEY=secretkey # - MINIO_SECRET_KEY=secretkey
networks: # networks:
- frontend # - frontend
### MySQL Container ######################################### ### MySQL Container #########################################
@ -210,120 +210,120 @@ services:
### Percona Container ######################################### ### Percona Container #########################################
percona: # percona:
build: # build:
context: ./percona # context: ./percona
environment: # environment:
- MYSQL_DATABASE=${PERCONA_DATABASE} # - MYSQL_DATABASE=${PERCONA_DATABASE}
- MYSQL_USER=${PERCONA_USER} # - MYSQL_USER=${PERCONA_USER}
- MYSQL_PASSWORD=${PERCONA_PASSWORD} # - MYSQL_PASSWORD=${PERCONA_PASSWORD}
- MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD} # - MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD}
volumes: # volumes:
- ${DATA_SAVE_PATH}/percona:/var/lib/mysql # - ${DATA_SAVE_PATH}/percona:/var/lib/mysql
- ${PERCONA_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d # - ${PERCONA_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
ports: # ports:
- "${PERCONA_PORT}:3306" # - "${PERCONA_PORT}:3306"
networks: # networks:
- backend # - backend
### MSSQL Container ######################################### ### MSSQL Container #########################################
mssql: # mssql:
build: # build:
context: ./mssql # context: ./mssql
environment: # environment:
- MSSQL_DATABASE=${MSSQL_DATABASE} # - MSSQL_DATABASE=${MSSQL_DATABASE}
- SA_PASSWORD=${MSSQL_PASSWORD} # - SA_PASSWORD=${MSSQL_PASSWORD}
- ACCEPT_EULA=Y # - ACCEPT_EULA=Y
volumes: # volumes:
- ${DATA_SAVE_PATH}/mssql:/var/opt/mssql # - ${DATA_SAVE_PATH}/mssql:/var/opt/mssql
ports: # ports:
- "${MSSQL_PORT}:1433" # - "${MSSQL_PORT}:1433"
networks: # networks:
- backend # - backend
### MariaDB Container ####################################### ### MariaDB Container #######################################
mariadb: # mariadb:
build: ./mariadb # build: ./mariadb
volumes: # volumes:
- ${DATA_SAVE_PATH}/mariadb:/var/lib/mysql # - ${DATA_SAVE_PATH}/mariadb:/var/lib/mysql
- ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d # - ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
ports: # ports:
- "${MARIADB_PORT}:3306" # - "${MARIADB_PORT}:3306"
environment: # environment:
- MYSQL_DATABASE=${MARIADB_DATABASE} # - MYSQL_DATABASE=${MARIADB_DATABASE}
- MYSQL_USER=${MARIADB_USER} # - MYSQL_USER=${MARIADB_USER}
- MYSQL_PASSWORD=${MARIADB_PASSWORD} # - MYSQL_PASSWORD=${MARIADB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD} # - MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
networks: # networks:
- backend # - backend
### PostgreSQL Container #################################### ### PostgreSQL Container ####################################
postgres: # postgres:
build: ./postgres # build: ./postgres
volumes: # volumes:
- ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql/data # - ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql/data
ports: # ports:
- "${POSTGRES_PORT}:5432" # - "${POSTGRES_PORT}:5432"
environment: # environment:
- POSTGRES_DB=${POSTGRES_DB} # - POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER} # - POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks: # networks:
- backend # - backend
### PostgreSQL PostGis Container ############################ ### PostgreSQL PostGis Container ############################
postgres-postgis: # postgres-postgis:
build: ./postgres-postgis # build: ./postgres-postgis
volumes: # volumes:
- ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql/data # - ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql/data
ports: # ports:
- "${POSTGRES_PORT}:5432" # - "${POSTGRES_PORT}:5432"
environment: # environment:
- POSTGRES_DB=${POSTGRES_DB} # - POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER} # - POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks: # networks:
- backend # - backend
### Neo4j Container ######################################### ### Neo4j Container #########################################
neo4j: # neo4j:
build: ./neo4j # build: ./neo4j
ports: # ports:
- "7474:7474" # - "7474:7474"
- "1337:1337" # - "1337:1337"
environment: # environment:
- NEO4J_AUTH=default:secret # - NEO4J_AUTH=default:secret
volumes: # volumes:
- ${DATA_SAVE_PATH}/neo4j:/var/lib/neo4j/data # - ${DATA_SAVE_PATH}/neo4j:/var/lib/neo4j/data
networks: # networks:
- backend # - backend
### MongoDB Container ####################################### ### MongoDB Container #######################################
mongo: # mongo:
build: ./mongo # build: ./mongo
ports: # ports:
- "${MONGODB_PORT}:27017" # - "${MONGODB_PORT}:27017"
volumes: # volumes:
- ${DATA_SAVE_PATH}/mongo:/data/db # - ${DATA_SAVE_PATH}/mongo:/data/db
networks: # networks:
- backend # - backend
### RethinkDB Container ####################################### ### RethinkDB Container #######################################
rethinkdb: # rethinkdb:
build: ./rethinkdb # build: ./rethinkdb
ports: # ports:
- "${RETHINKDB_PORT}:8080" # - "${RETHINKDB_PORT}:8080"
volumes: # volumes:
- ${DATA_SAVE_PATH}/rethinkdb:/data/rethinkdb_data # - ${DATA_SAVE_PATH}/rethinkdb:/data/rethinkdb_data
networks: # networks:
- backend # - backend
### Redis Container ######################################### ### Redis Container #########################################
@ -338,290 +338,291 @@ services:
### Aerospike c Container ################################### ### Aerospike c Container ###################################
aerospike: # aerospike:
build: ./aerospike # build: ./aerospike
volumes_from: # volumes_from:
- workspace # - workspace
volumes: # volumes:
- ${DATA_SAVE_PATH}/aerospike:/opt/aerospike/data # - ${DATA_SAVE_PATH}/aerospike:/opt/aerospike/data
ports: # ports:
- "${AEROSPIKE_SERVICE_PORT}:3000" # - "${AEROSPIKE_SERVICE_PORT}:3000"
- "${AEROSPIKE_FABRIC_PORT}:3001" # - "${AEROSPIKE_FABRIC_PORT}:3001"
- "${AEROSPIKE_HEARTBEAT_PORT}:3002" # - "${AEROSPIKE_HEARTBEAT_PORT}:3002"
- "${AEROSPIKE_INFO_PORT}:3003" # - "${AEROSPIKE_INFO_PORT}:3003"
networks: # networks:
- backend # - backend
### Memcached Container ##################################### ### Memcached Container #####################################
memcached: # memcached:
build: ./memcached # build: ./memcached
volumes: # volumes:
- ${DATA_SAVE_PATH}/memcached:/var/lib/memcached # - ${DATA_SAVE_PATH}/memcached:/var/lib/memcached
ports: # ports:
- "${MEMCACHED_HOST_PORT}:11211" # - "${MEMCACHED_HOST_PORT}:11211"
depends_on: # depends_on:
- php-fpm # - php-fpm
networks: # networks:
- backend # - backend
### Beanstalkd Container #################################### ### Beanstalkd Container ####################################
beanstalkd: # beanstalkd:
build: ./beanstalkd # build: ./beanstalkd
ports: # ports:
- "${BEANSTALKD_HOST_PORT}:11300" # - "${BEANSTALKD_HOST_PORT}:11300"
privileged: true # privileged: true
depends_on: # depends_on:
- php-fpm # - php-fpm
networks: # networks:
- backend # - backend
### RabbitMQ Container ###################################### ### RabbitMQ Container ######################################
rabbitmq: # rabbitmq:
build: ./rabbitmq # build: ./rabbitmq
ports: # ports:
- "${RABBITMQ_NODE_HOST_PORT}:5672" # - "${RABBITMQ_NODE_HOST_PORT}:5672"
- "${RABBITMQ_MANAGEMENT_HTTP_HOST_PORT}:15672" # - "${RABBITMQ_MANAGEMENT_HTTP_HOST_PORT}:15672"
- "${RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT}:15671" # - "${RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT}:15671"
privileged: true # privileged: true
environment: # environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER} # - RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS} # - RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
depends_on: # depends_on:
- php-fpm # - php-fpm
networks: # networks:
- backend # - backend
### Beanstalkd Console Container ############################ ### Beanstalkd Console Container ############################
beanstalkd-console: # beanstalkd-console:
build: ./beanstalkd-console # build: ./beanstalkd-console
ports: # ports:
- "2080:2080" # - "2080:2080"
depends_on: # depends_on:
- beanstalkd # - beanstalkd
networks: # networks:
- backend # - backend
### Caddy Server Container ################################## ### Caddy Server Container ##################################
caddy: # caddy:
build: ./caddy # build: ./caddy
volumes_from: # volumes_from:
- applications # - applications
volumes: # volumes:
- ${CADDY_CUSTOM_CADDYFILE}:/etc/Caddyfile # - ${CADDY_CUSTOM_CADDYFILE}:/etc/Caddyfile
- ${CADDY_HOST_LOG_PATH}:/var/log/caddy # - ${CADDY_HOST_LOG_PATH}:/var/log/caddy
- ${DATA_SAVE_PATH}:/root/.caddy # - ${DATA_SAVE_PATH}:/root/.caddy
ports: # ports:
- "${CADDY_HOST_HTTP_PORT}:80" # - "${CADDY_HOST_HTTP_PORT}:80"
- "${CADDY_HOST_HTTPS_PORT}:443" # - "${CADDY_HOST_HTTPS_PORT}:443"
depends_on: # depends_on:
- php-fpm # - php-fpm
networks: # networks:
- frontend # - frontend
- backend # - backend
### phpMyAdmin Container #################################### ### phpMyAdmin Container ####################################
phpmyadmin: # phpmyadmin:
build: ./phpmyadmin # build: ./phpmyadmin
environment: # environment:
- PMA_ARBITRARY=1 # - PMA_ARBITRARY=1
- MYSQL_USER=${PMA_USER} # - MYSQL_USER=${PMA_USER}
- MYSQL_PASSWORD=${PMA_PASSWORD} # - MYSQL_PASSWORD=${PMA_PASSWORD}
- MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD} # - MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD}
ports: # ports:
- "${PMA_PORT}:80" # - "${PMA_PORT}:80"
depends_on: # depends_on:
- "${PMA_DB_ENGINE}" # - "${PMA_DB_ENGINE}"
networks: # networks:
- frontend # - frontend
- backend # - backend
### Adminer Container #################################### ### Adminer Container ####################################
adminer: # adminer:
build: # build:
context: ./adminer # context: ./adminer
args: # args:
- INSTALL_MSSQL=${ADM_INSTALL_MSSQL} # - INSTALL_MSSQL=${ADM_INSTALL_MSSQL}
ports: # ports:
- "${ADM_PORT}:8080" # - "${ADM_PORT}:8080"
depends_on: # depends_on:
- php-fpm # - php-fpm
networks: # networks:
- frontend # - frontend
- backend # - backend
### pgAdmin Container ####################################### ### pgAdmin Container #######################################
pgadmin: # pgadmin:
build: ./pgadmin # build: ./pgadmin
ports: # ports:
- "5050:5050" # - "5050:5050"
depends_on: # depends_on:
- postgres # - postgres
networks: # networks:
- frontend # - frontend
- backend # - backend
### ElasticSearch Container ################################# ### ElasticSearch Container #################################
elasticsearch: # elasticsearch:
build: ./elasticsearch # build: ./elasticsearch
volumes: # volumes:
- elasticsearch-data:/usr/share/elasticsearch/data # - elasticsearch-data:/usr/share/elasticsearch/data
- elasticsearch-plugins:/usr/share/elasticsearch/plugins # - elasticsearch-plugins:/usr/share/elasticsearch/plugins
environment: # environment:
- cluster.name=laradock-cluster # - cluster.name=laradock-cluster
- bootstrap.memory_lock=true # - bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms256m -Xmx256m" # - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
ulimits: # ulimits:
memlock: # memlock:
soft: -1 # soft: -1
hard: -1 # hard: -1
mem_limit: 512m # mem_limit: 512m
ports: # ports:
- "${ELASTICSEARCH_HOST_HTTP_PORT}:9200" # - "${ELASTICSEARCH_HOST_HTTP_PORT}:9200"
- "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300" # - "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300"
depends_on: # depends_on:
- php-fpm # - php-fpm
networks: # networks:
- frontend # - frontend
- backend # - backend
### Kibana Container ####################################### ### Kibana Container #######################################
kibana: # kibana:
build: ./kibana # build: ./kibana
ports: # ports:
- "${KIBANA_HTTP_PORT}:5601" # - "${KIBANA_HTTP_PORT}:5601"
depends_on: # depends_on:
- elasticsearch # - elasticsearch
networks: # networks:
- frontend # - frontend
- backend # - backend
### Certbot Container ################################## ### Certbot Container ##################################
certbot: # certbot:
build: # build:
context: ./certbot # context: ./certbot
volumes: # volumes:
- ./data/certbot/certs/:/var/certs # - ./data/certbot/certs/:/var/certs
- ./certbot/letsencrypt/:/var/www/letsencrypt # - ./certbot/letsencrypt/:/var/www/letsencrypt
environment: # environment:
- CN="fake.domain.com" # - CN="fake.domain.com"
- EMAIL="fake.email@gmail.com" # - EMAIL="fake.email@gmail.com"
networks: # networks:
- frontend # - frontend
### Mailhog Container ######################################### ### Mailhog Container #########################################
mailhog: # mailhog:
build: ./mailhog # build: ./mailhog
ports: # ports:
- "1025:1025" # - "1025:1025"
- "8025:8025" # - "8025:8025"
networks: # networks:
- frontend # - frontend
- backend # - backend
### Selenium Container ######################################## ### Selenium Container ########################################
selenium: # selenium:
build: ./selenium # build: ./selenium
ports: # ports:
- "${SELENIUM_PORT}:4444" # - "${SELENIUM_PORT}:4444"
volumes: # volumes:
- /dev/shm:/dev/shm # - /dev/shm:/dev/shm
networks: # networks:
- frontend # - frontend
### Varnish Proxy 1 ########################################## ### Varnish Proxy 1 ##########################################
proxy: # proxy:
build: ./varnish # build: ./varnish
expose: # expose:
- ${VARNISH_PORT} # - ${VARNISH_PORT}
environment: # environment:
- VARNISH_CONFIG=${VARNISH_CONFIG} # - VARNISH_CONFIG=${VARNISH_CONFIG}
- CACHE_SIZE=${VARNISH_PROXY1_CACHE_SIZE} # - CACHE_SIZE=${VARNISH_PROXY1_CACHE_SIZE}
- VARNISHD_PARAMS=${VARNISHD_PARAMS} # - VARNISHD_PARAMS=${VARNISHD_PARAMS}
- VARNISH_PORT=${VARNISH_PORT} # - VARNISH_PORT=${VARNISH_PORT}
- BACKEND_HOST=${VARNISH_PROXY1_BACKEND_HOST} # - BACKEND_HOST=${VARNISH_PROXY1_BACKEND_HOST}
- BACKEND_PORT=${VARNISH_BACKEND_PORT} # - BACKEND_PORT=${VARNISH_BACKEND_PORT}
- VARNISH_SERVER=${VARNISH_PROXY1_SERVER} # - VARNISH_SERVER=${VARNISH_PROXY1_SERVER}
links: # links:
- workspace # - workspace
networks: # networks:
- frontend # - frontend
### Varnish Proxy 2 ########################################## ### Varnish Proxy 2 ##########################################
proxy2: # proxy2:
build: ./varnish # build: ./varnish
expose: # expose:
- ${VARNISH_PORT} # - ${VARNISH_PORT}
environment: # environment:
- VARNISH_CONFIG=${VARNISH_CONFIG} # - VARNISH_CONFIG=${VARNISH_CONFIG}
- CACHE_SIZE=${VARNISH_PROXY2_CACHE_SIZE} # - CACHE_SIZE=${VARNISH_PROXY2_CACHE_SIZE}
- VARNISHD_PARAMS=${VARNISHD_PARAMS} # - VARNISHD_PARAMS=${VARNISHD_PARAMS}
- VARNISH_PORT=${VARNISH_PORT} # - VARNISH_PORT=${VARNISH_PORT}
- BACKEND_HOST=${VARNISH_PROXY2_BACKEND_HOST} # - BACKEND_HOST=${VARNISH_PROXY2_BACKEND_HOST}
- BACKEND_PORT=${VARNISH_BACKEND_PORT} # - BACKEND_PORT=${VARNISH_BACKEND_PORT}
- VARNISH_SERVER=${VARNISH_PROXY2_SERVER} # - VARNISH_SERVER=${VARNISH_PROXY2_SERVER}
links: # links:
- workspace # - workspace
networks: # networks:
- frontend # - frontend
### Balancer Haproxy ########################################## ### Balancer Haproxy ##########################################
balancer: # balancer:
build: ./haproxy # build: ./haproxy
ports: # ports:
- "${HAPROXY_HOST_HTTP_PORT}:8085" # - "${HAPROXY_HOST_HTTP_PORT}:8085"
volumes: # volumes:
- /var/run/docker.sock:/var/run/docker.sock # - /var/run/docker.sock:/var/run/docker.sock
links: # links:
- proxy # - proxy
- proxy2 # - proxy2
### Jenkins ################################################### ### Jenkins ###################################################
jenkins: # jenkins:
build: ./jenkins # build: ./jenkins
environment: # environment:
JAVA_OPTS: "-Djava.awt.headless=true" # JAVA_OPTS: "-Djava.awt.headless=true"
ports: # ports:
- "${JENKINS_HOST_SLAVE_AGENT_PORT}:50000" # - "${JENKINS_HOST_SLAVE_AGENT_PORT}:50000"
- "${JENKINS_HOST_HTTP_PORT}:8080" # - "${JENKINS_HOST_HTTP_PORT}:8080"
privileged: true # privileged: true
volumes: # volumes:
- ${JENKINS_HOME}:/var/jenkins_home # - ${JENKINS_HOME}:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock # - /var/run/docker.sock:/var/run/docker.sock
networks: # networks:
- frontend # - frontend
- backend # - backend
### Laravel Echo Server ####################################### ### Laravel Echo Server #######################################
laravel-echo-server:
build: # laravel-echo-server:
context: ./laravel-echo-server # build:
volumes: # context: ./laravel-echo-server
- ./laravel-echo-server/laravel-echo-server.json:/app/laravel-echo-server.json:ro # volumes:
ports: # - ./laravel-echo-server/laravel-echo-server.json:/app/laravel-echo-server.json:ro
- "${LARAVEL_ECHO_SERVER_PORT}:6001" # ports:
links: # - "${LARAVEL_ECHO_SERVER_PORT}:6001"
- redis # links:
networks: # - redis
- frontend # networks:
- backend # - frontend
# - backend
### Networks Setup ############################################ ### Networks Setup ############################################