Bartosz Gardziejewski | 03591ab | 2020-09-29 13:50:12 +0200 | [diff] [blame] | 1 | # Copyright 2020 Huawei Technologies Co., Ltd. |
| 2 | # Copyright 2020 Nokia. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | version: '2' |
| 17 | networks: |
| 18 | default: |
| 19 | driver: bridge |
| 20 | driver_opts: |
| 21 | com.docker.network.driver.mtu: ${NETWORK_DRIVER_MTU} |
| 22 | |
| 23 | services: |
| 24 | postgres: |
| 25 | container_name: "postgres" |
| 26 | restart: "always" |
| 27 | image: "nexus3.onap.org:10001/onap/vnfsdk/refrepo/postgres:${POSTGRES_IMAGE_TAG}" |
| 28 | mem_limit: "1g" |
| 29 | memswap_limit: "1g" |
| 30 | ports: |
| 31 | - "5432:5432" |
| 32 | |
| 33 | refrepo: |
| 34 | container_name: "refrepo" |
| 35 | restart: "always" |
| 36 | image: "nexus3.onap.org:10001/onap/vnfsdk/refrepo:${REFREPO_IMAGE_TAG}" |
| 37 | ports: |
| 38 | - "8702-8703:8702-8703" |
| 39 | - "50051:50051" |
| 40 | environment: |
| 41 | POSTGRES_SERVICE_HOST: postgres |
| 42 | links: |
| 43 | - postgres |