Lusheng Ji | 819aa7f | 2018-04-16 02:24:39 -0400 | [diff] [blame] | 1 | version: '2.1' |
| 2 | services: |
| 3 | pgHolmes: |
| 4 | image: "postgres:9.5" |
| 5 | container_name: "pgHolmes" |
Lusheng Ji | cb9d614 | 2018-05-08 09:38:02 -0400 | [diff] [blame] | 6 | restart: "always" |
Lusheng Ji | 819aa7f | 2018-04-16 02:24:39 -0400 | [diff] [blame] | 7 | hostname: "phHolmes" |
| 8 | environment: |
| 9 | - "POSTGRES_USER=holmes" |
| 10 | - "POSTGRES_PASSWORD=holmespwd" |
| 11 | ports: |
| 12 | - "5432:5432" |
| 13 | labels: |
| 14 | - "SERVICE_5432_NAME=pgHolmes" |
| 15 | - "SERVICE_5432_CHECK_TCP=true" |
| 16 | - "SERVICE_5432_CHECK_INTERVAL=15s" |
| 17 | - "SERVICE_5432_CHECK_INITIAL_STATUS=passing" |
| 18 | |
| 19 | pgInventory: |
| 20 | image: "postgres:9.5" |
| 21 | container_name: "pgInventory" |
Lusheng Ji | cb9d614 | 2018-05-08 09:38:02 -0400 | [diff] [blame] | 22 | restart: "always" |
Lusheng Ji | 819aa7f | 2018-04-16 02:24:39 -0400 | [diff] [blame] | 23 | hostname: "pgInventory" |
| 24 | environment: |
| 25 | - "POSTGRES_USER=inventory" |
| 26 | - "POSTGRES_PASSWORD=inventorypwd" |
| 27 | ports: |
| 28 | - "5433:5432" |
| 29 | labels: |
| 30 | - "SERVICE_5432_NAME=pgInventory" |
| 31 | - "SERVICE_5432_CHECK_TCP=true" |
| 32 | - "SERVICE_5432_CHECK_INTERVAL=15s" |
| 33 | - "SERVICE_5432_CHECK_INITIAL_STATUS=passing" |
| 34 | |
| 35 | |
| 36 | consul: |
Lusheng Ji | cb9d614 | 2018-05-08 09:38:02 -0400 | [diff] [blame] | 37 | image: "consul:0.8.3" |
Lusheng Ji | 819aa7f | 2018-04-16 02:24:39 -0400 | [diff] [blame] | 38 | container_name: "consul" |
Lusheng Ji | cb9d614 | 2018-05-08 09:38:02 -0400 | [diff] [blame] | 39 | restart: "always" |
Lusheng Ji | 819aa7f | 2018-04-16 02:24:39 -0400 | [diff] [blame] | 40 | hostname: "consul" |
| 41 | ports: |
| 42 | - "8500:8500" |
| 43 | environment: |
| 44 | - "DOCKER_HOST=tcp://{{ dcae_ip_addr }}:2376" |
| 45 | command: "agent -ui -server -bootstrap-expect 1 -client 0.0.0.0 -log-level trace" |
| 46 | labels: |
| 47 | - "SERVICE_8500_NAME=consul" |
| 48 | - "SERVICE_8500_CHECK_HTTP=/v1/agent/services" |
| 49 | - "SERVICE_8500_CHECK_INTERVAL=15s" |
| 50 | - "SERVICE_8500_CHECK_INITIAL_STATUS=passing" |
| 51 | |
| 52 | |
| 53 | config-binding-service: |
| 54 | image: "{{ nexus_docker_repo}}/onap/org.onap.dcaegen2.platform.configbinding:{{ dcae_docker_cbs }}" |
| 55 | container_name: "config_binding_service" |
Lusheng Ji | cb9d614 | 2018-05-08 09:38:02 -0400 | [diff] [blame] | 56 | restart: "always" |
Lusheng Ji | 819aa7f | 2018-04-16 02:24:39 -0400 | [diff] [blame] | 57 | hostname: "config-binding-service" |
| 58 | environment: |
| 59 | - "CONSUL_HOST=consul" |
| 60 | ports: |
| 61 | - "10000:10000" |
| 62 | depends_on: |
| 63 | - "consul" |
| 64 | labels: |
| 65 | - "SERVICE_10000_NAME=config_binding_service" |
| 66 | - "SERVICE_10000_CHECK_HTTP=/healthcheck" |
| 67 | - "SERVICE_10000_CHECK_INTERVAL=15s" |
| 68 | - "SERVICE_10000_CHECK_INITIAL_STATUS=passing" |
| 69 | |