diff options
author | Murali <murali.p@huawei.com> | 2017-09-21 07:13:12 +0000 |
---|---|---|
committer | Murali <murali.p@huawei.com> | 2017-09-21 07:13:12 +0000 |
commit | 93e9b703854909847fcd031592ca44cee0f5fa10 (patch) | |
tree | 73aef753b5e6724b512312c3f5eebca661d77309 /vnfmarket-be/deployment/install/docker-compose.yml | |
parent | 984346f6f482323595ca0f5b3eb570291641de70 (diff) |
Add MTU variable to the docker compose file
Change-Id: I8fb4ef9341c9fce5e07ee171387c72b2b91081aa
Jira:VNFSDK-92
Signed-off-by: Murali <murali.p@huawei.com>
Diffstat (limited to 'vnfmarket-be/deployment/install/docker-compose.yml')
-rw-r--r-- | vnfmarket-be/deployment/install/docker-compose.yml | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/vnfmarket-be/deployment/install/docker-compose.yml b/vnfmarket-be/deployment/install/docker-compose.yml index 57236875..c692d6a1 100644 --- a/vnfmarket-be/deployment/install/docker-compose.yml +++ b/vnfmarket-be/deployment/install/docker-compose.yml @@ -1,20 +1,27 @@ -postgres: - container_name: "postgres" - restart: "always" - image: "${NEXUS_REPO}/onap/refrepo/postgres:${POSTGRES_TAG}" - mem_limit: "1g" - memswap_limit: "1g" - ports: - - "5432:5432" - +version: '2' +networks: + default: + driver: bridge + driver_opts: + com.docker.network.driver.mtu: ${MTU} -refrepo: - container_name: "refrepo" - restart: "always" - image: "${NEXUS_REPO}/onap/refrepo:${REFREPO_TAG}" - ports: - - "8702:8702" - environment: - POSTGRES_IP: postgres - links: - - postgres +services: + postgres: + container_name: "postgres" + restart: "always" + image: "${NEXUS_REPO}/onap/refrepo/postgres:${POSTGRES_TAG}" + mem_limit: "1g" + memswap_limit: "1g" + ports: + - "5432:5432" + + refrepo: + container_name: "refrepo" + restart: "always" + image: "${NEXUS_REPO}/onap/refrepo:${REFREPO_TAG}" + ports: + - "8702:8702" + environment: + POSTGRES_IP: postgres + links: + - postgres |