BjornMagnussonXA | 80a9200 | 2020-03-19 14:31:06 +0100 | [diff] [blame] | 1 | # ============LICENSE_START=============================================== |
| 2 | # Copyright (C) 2020 Nordix Foundation. All rights reserved. |
| 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 | # ============LICENSE_END================================================= |
| 16 | # |
| 17 | |
| 18 | version: '3' |
| 19 | |
| 20 | networks: |
| 21 | default: |
| 22 | external: |
| 23 | name: ${DOCKER_SIM_NWNAME} |
| 24 | |
| 25 | services: |
| 26 | |
| 27 | consul-server: |
| 28 | networks: |
| 29 | - default |
| 30 | container_name: ${CONSUL_APP_NAME} |
| 31 | image: ${CONSUL_IMAGE} |
| 32 | ports: |
| 33 | - ${CONSUL_EXTERNAL_PORT}:${CONSUL_INTERNAL_PORT} |
| 34 | volumes: |
| 35 | - ./consul/:/consul/config |
| 36 | |
| 37 | config-binding-service: |
| 38 | networks: |
| 39 | - default |
| 40 | container_name: ${CBS_APP_NAME} |
| 41 | image: ${CBS_IMAGE} |
| 42 | ports: |
| 43 | - ${CBS_EXTERNAL_PORT}:${CBS_INTERNAL_PORT} |
| 44 | environment: |
| 45 | - CONSUL_HOST=${CONSUL_HOST} |
| 46 | depends_on: |
| 47 | - ${CONSUL_HOST} |
| 48 | |