From 546ef0ade610609316d15198d63674df234012cb Mon Sep 17 00:00:00 2001 From: Sascha Brendel Date: Tue, 9 May 2017 01:31:00 +0200 Subject: [PATCH] Added ENV support for aerospike, rethinkdb and mongodb. Part of #763. --- docker-compose.yml | 12 ++++++------ env-example | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7cca302..53e9412 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -298,7 +298,7 @@ services: mongo: build: ./mongo ports: - - "27017:27017" + - "${MONGODB_PORT}:27017" volumes: - ${DATA_SAVE_PATH}/mongo:/data/db networks: @@ -309,7 +309,7 @@ services: rethinkdb: build: ./rethinkdb ports: - - "8090:8080" + - "${RETHINKDB_PORT}:8080" volumes: - ${DATA_SAVE_PATH}/rethinkdb:/data/rethinkdb_data networks: @@ -335,10 +335,10 @@ services: volumes: - ${DATA_SAVE_PATH}/aerospike:/opt/aerospike/data ports: - - "3000:3000" - - "3001:3001" - - "3002:3002" - - "3003:3003" + - "${AEROSPIKE_SERVICE_PORT}:3000" + - "${AEROSPIKE_FABRIC_PORT}:3001" + - "${AEROSPIKE_HEARTBEAT_PORT}:3002" + - "${AEROSPIKE_INFO_PORT}:3003" networks: - backend diff --git a/env-example b/env-example index 2a38efb..ce3651f 100644 --- a/env-example +++ b/env-example @@ -215,6 +215,20 @@ BLACKFIRE_CLIENT_TOKEN= BLACKFIRE_SERVER_ID= BLACKFIRE_SERVER_TOKEN= +### AEROSPIKE ########################################################################################################## + +AEROSPIKE_SERVICE_PORT=3000 +AEROSPIKE_FABRIC_PORT=3001 +AEROSPIKE_HEARTBEAT_PORT=3002 +AEROSPIKE_INFO_PORT=3003 + +### RETHINKDB ########################################################################################################## + +RETHINKDB_PORT=8090 + +### MONGODB ############################################################################################################ + +MONGODB_PORT=27017 ##### TO BE CONTINUE .................................