AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 1 | version: '3.3' |
| 2 | |
| 3 | services: |
efiacor | 6937761 | 2021-07-20 15:53:48 +0100 | [diff] [blame^] | 4 | zookeeper: |
| 5 | image: nexus3.onap.org:10001/onap/dmaap/zookeeper:6.1.0 |
| 6 | container_name: dmaap-zookeeper |
| 7 | ports: |
| 8 | - "2181:2181" |
| 9 | environment: |
| 10 | ZOOKEEPER_REPLICAS: 1 |
| 11 | ZOOKEEPER_TICK_TIME: 2000 |
| 12 | ZOOKEEPER_SYNC_LIMIT: 5 |
| 13 | ZOOKEEPER_INIT_LIMIT: 10 |
| 14 | ZOOKEEPER_MAX_CLIENT_CNXNS: 200 |
| 15 | ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3 |
| 16 | ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24 |
| 17 | ZOOKEEPER_CLIENT_PORT: 2181 |
| 18 | KAFKA_OPTS: -Djava.security.auth.login.config=/etc/zookeeper/secrets/jaas/zk_server_jaas.conf -Dzookeeper.kerberos.removeHostFromPrincipal=true -Dzookeeper.kerberos.removeRealmFromPrincipal=true -Dzookeeper.authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider -Dzookeeper.requireClientAuthScheme=sasl -Dzookeeper.4lw.commands.whitelist=* |
| 19 | ZOOKEEPER_SERVER_ID: 1 |
| 20 | volumes: |
| 21 | - ./assets/zk/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf |
| 22 | networks: |
| 23 | net: |
| 24 | aliases: |
| 25 | - zookeeper |
| 26 | |
| 27 | kafka: |
| 28 | image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.1.0 |
| 29 | container_name: dmaap-kafka |
| 30 | ports: |
| 31 | - "9092:9092" |
| 32 | environment: |
| 33 | enableCadi: 'false' |
| 34 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 35 | KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000 |
| 36 | KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000 |
| 37 | KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT |
| 38 | KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092 |
| 39 | KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092 |
| 40 | KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT |
| 41 | KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false' |
| 42 | KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf |
| 43 | KAFKA_ZOOKEEPER_SET_ACL: 'true' |
| 44 | KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 |
| 45 | # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment |
| 46 | KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1 |
| 47 | volumes: |
| 48 | - ./assets/kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf |
| 49 | networks: |
| 50 | net: |
| 51 | aliases: |
| 52 | - kafka |
| 53 | depends_on: |
| 54 | - zookeeper |
| 55 | |
| 56 | dmaap-mr: |
| 57 | image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.3.0 |
| 58 | container_name: dmaap-mr |
| 59 | ports: |
| 60 | - "3904:3904" |
| 61 | - "3905:3905" |
| 62 | environment: |
| 63 | enableCadi: 'false' |
| 64 | volumes: |
| 65 | - ./assets/mr/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties |
| 66 | networks: |
| 67 | net: |
| 68 | aliases: |
| 69 | - dmaap-mr |
| 70 | depends_on: |
| 71 | - zookeeper |
| 72 | - kafka |
| 73 | |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 74 | db: |
| 75 | container_name: db |
| 76 | image: postgres |
| 77 | restart: always |
| 78 | environment: |
| 79 | POSTGRES_PASSWORD: $DB_PASSWORD |
| 80 | POSTGRES_USER: $DB_USER |
| 81 | networks: |
efiacor | 6937761 | 2021-07-20 15:53:48 +0100 | [diff] [blame^] | 82 | net: |
efiacor | 830e11d | 2021-01-29 14:28:34 +0000 | [diff] [blame] | 83 | aliases: |
| 84 | - db |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 85 | |
efiacor | 49b4644 | 2020-07-06 11:55:44 +0100 | [diff] [blame] | 86 | aai: |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 87 | container_name: aai-sim |
| 88 | image: mockserver/mockserver:mockserver-5.9.0 |
| 89 | environment: |
| 90 | MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties |
| 91 | MOCKSERVER_INITIALIZATION_JSON_PATH: /config/aai-initializer.json |
efiacor | 49b4644 | 2020-07-06 11:55:44 +0100 | [diff] [blame] | 92 | LOG_LEVEL: "DEBUG" |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 93 | volumes: |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 94 | - ./assets/aai_sim/aai_mockserver.properties:/config/mockserver.properties |
| 95 | - ./assets/aai_sim/aai-initializer.json:/config/aai-initializer.json |
efiacor | 49b4644 | 2020-07-06 11:55:44 +0100 | [diff] [blame] | 96 | - ./assets/ssl_certs/mock_server_cacert.pem:/var/tmp/mock_server_cacert.pem |
| 97 | - ./assets/ssl_certs/mock_server_key.pem:/var/tmp/mock_server_key.pem |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 98 | networks: |
efiacor | 6937761 | 2021-07-20 15:53:48 +0100 | [diff] [blame^] | 99 | net: |
efiacor | 830e11d | 2021-01-29 14:28:34 +0000 | [diff] [blame] | 100 | aliases: |
| 101 | - aai-sim |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 102 | |
| 103 | cbs-sim: |
| 104 | container_name: cbs-sim |
| 105 | image: mockserver/mockserver:mockserver-5.9.0 |
| 106 | environment: |
| 107 | MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties |
| 108 | MOCKSERVER_INITIALIZATION_JSON_PATH: /config/cbs-initializer.json |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 109 | LOG_LEVEL: "DEBUG" |
| 110 | SERVER_PORT: 10443 |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 111 | volumes: |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 112 | - ./assets/cbs_sim/cbs_mockserver.properties:/config/mockserver.properties |
| 113 | - ./assets/cbs_sim/cbs-initializer.json:/config/cbs-initializer.json |
| 114 | - ./assets/ssl_certs/mock_server_cacert.pem:/var/tmp/mock_server_cacert.pem |
| 115 | - ./assets/ssl_certs/mock_server_key.pem:/var/tmp/mock_server_key.pem |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 116 | networks: |
efiacor | 6937761 | 2021-07-20 15:53:48 +0100 | [diff] [blame^] | 117 | net: |
efiacor | 830e11d | 2021-01-29 14:28:34 +0000 | [diff] [blame] | 118 | aliases: |
| 119 | - cbs-sim |
AndyWalshe | 48496a5 | 2020-03-12 12:52:19 +0000 | [diff] [blame] | 120 | |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 121 | pmsh: |
| 122 | container_name: pmsh |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 123 | image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:latest |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 124 | depends_on: |
| 125 | - db |
| 126 | volumes: |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 127 | - ./assets/ssl_certs/cert.pem:/opt/app/pmsh/etc/certs/cert.pem |
| 128 | - ./assets/ssl_certs/key.pem:/opt/app/pmsh/etc/certs/key.pem |
| 129 | - ./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] | 130 | environment: |
| 131 | HOSTNAME: "dcae-pmsh" |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 132 | CONFIG_BINDING_SERVICE: cbs-sim |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 133 | PMSH_PG_URL: db |
| 134 | PMSH_PG_USERNAME: $DB_USER |
| 135 | PMSH_PG_PASSWORD: $DB_PASSWORD |
efiacor | e207b42 | 2020-04-23 10:36:54 +0100 | [diff] [blame] | 136 | AAI_SERVICE_PORT: 1080 |
| 137 | DCAE_CA_CERTPATH: '/opt/app/pmsh/etc/certs/cacert.pem' |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 138 | networks: |
efiacor | 6937761 | 2021-07-20 15:53:48 +0100 | [diff] [blame^] | 139 | net: |
efiacor | 830e11d | 2021-01-29 14:28:34 +0000 | [diff] [blame] | 140 | aliases: |
| 141 | - pmsh |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 142 | |
| 143 | networks: |
efiacor | 6937761 | 2021-07-20 15:53:48 +0100 | [diff] [blame^] | 144 | net: |
| 145 | driver: bridge |
efiacor | 830e11d | 2021-01-29 14:28:34 +0000 | [diff] [blame] | 146 | |