AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 1 | version: '3.3' |
| 2 | |
| 3 | services: |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 4 | db: |
| 5 | container_name: db |
| 6 | image: postgres |
| 7 | restart: always |
| 8 | environment: |
| 9 | POSTGRES_PASSWORD: $DB_PASSWORD |
| 10 | POSTGRES_USER: $DB_USER |
| 11 | networks: |
| 12 | pmsh-network: |
| 13 | |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 14 | aai-sim: |
| 15 | container_name: aai-sim |
| 16 | image: mockserver/mockserver:mockserver-5.9.0 |
| 17 | environment: |
| 18 | MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties |
| 19 | MOCKSERVER_INITIALIZATION_JSON_PATH: /config/aai-initializer.json |
| 20 | volumes: |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 21 | - ./assets/aai_sim/aai_mockserver.properties:/config/mockserver.properties |
| 22 | - ./assets/aai_sim/aai-initializer.json:/config/aai-initializer.json |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 23 | networks: |
| 24 | pmsh-network: |
| 25 | |
| 26 | cbs-sim: |
| 27 | container_name: cbs-sim |
| 28 | image: mockserver/mockserver:mockserver-5.9.0 |
| 29 | environment: |
| 30 | MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties |
| 31 | MOCKSERVER_INITIALIZATION_JSON_PATH: /config/cbs-initializer.json |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 32 | LOG_LEVEL: "DEBUG" |
| 33 | SERVER_PORT: 10443 |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 34 | volumes: |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 35 | - ./assets/cbs_sim/cbs_mockserver.properties:/config/mockserver.properties |
| 36 | - ./assets/cbs_sim/cbs-initializer.json:/config/cbs-initializer.json |
| 37 | - ./assets/ssl_certs/mock_server_cacert.pem:/var/tmp/mock_server_cacert.pem |
| 38 | - ./assets/ssl_certs/mock_server_key.pem:/var/tmp/mock_server_key.pem |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 39 | networks: |
| 40 | pmsh-network: |
| 41 | |
| 42 | mr-sim: |
| 43 | container_name: mr-sim |
| 44 | image: mockserver/mockserver:mockserver-5.9.0 |
| 45 | environment: |
| 46 | MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties |
| 47 | MOCKSERVER_INITIALIZATION_JSON_PATH: /config/mr-initializer.json |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 48 | LOG_LEVEL: "DEBUG" |
| 49 | SERVER_PORT: 3095 |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 50 | volumes: |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 51 | - ./assets/mr_sim/mr_mockserver.properties:/config/mockserver.properties |
| 52 | - ./assets/mr_sim/mr-initializer.json:/config/mr-initializer.json |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 53 | networks: |
| 54 | pmsh-network: |
| 55 | |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 56 | pmsh: |
| 57 | container_name: pmsh |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 58 | image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:latest |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 59 | depends_on: |
| 60 | - db |
| 61 | volumes: |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 62 | - ./assets/ssl_certs/cert.pem:/opt/app/pmsh/etc/certs/cert.pem |
| 63 | - ./assets/ssl_certs/key.pem:/opt/app/pmsh/etc/certs/key.pem |
| 64 | - ./assets/ssl_certs/mock_server_cacert.pem:/opt/app/pmsh/etc/certs/cacert.pem |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 65 | environment: |
| 66 | HOSTNAME: "dcae-pmsh" |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 67 | CONFIG_BINDING_SERVICE: cbs-sim |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 68 | PMSH_PG_URL: db |
| 69 | PMSH_PG_USERNAME: $DB_USER |
| 70 | PMSH_PG_PASSWORD: $DB_PASSWORD |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 71 | AAI_SERVICE_HOST: aai-sim |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 72 | AAI_SERVICE_PORT: 1080 |
| 73 | DCAE_CA_CERTPATH: '/opt/app/pmsh/etc/certs/cacert.pem' |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 74 | networks: |
| 75 | pmsh-network: |
| 76 | |
| 77 | networks: |
| 78 | pmsh-network: |
| 79 | driver: bridge |