diff options
author | Rob Daugherty <rd472p@att.com> | 2019-01-10 11:27:08 -0500 |
---|---|---|
committer | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2019-01-16 13:36:29 +0000 |
commit | c27bfea5f69f744b2989e03cf5081b9847bb614b (patch) | |
tree | 0af17956ddc54e84d0a428c85da29c2301454fa5 /docker-compose-local.yml | |
parent | bff44e8d1260cd654c0ceaae8137a81948c77bab (diff) |
docker-config for local environmentcasablanca
We can use docker-compose to bring up SO containers in
a development environment.
This solution is lighter weight than kubernetes with
rancher, and should be a lot easier to use for those who
don't need all the management functions provided by
kubernetes.
I've included a script that fetches the springboot
overlay files (config files) from the oom repo and
parameterizes them for the docker-config environment.
This should alleviate the issues we would otherwise
have with keeping two sets of overlay files in sync.
Note that nothing here affects any delivered artifact,
so perhaps the PTL will consider merging it into
casablanca, even though it is past the maintenance
release date.
Change-Id: I0deeb853484fdfd0862b02121e0922fe7fc923e4
Signed-off-by: Rob Daugherty <rd472p@att.com>
Issue-ID: SO-1374
Diffstat (limited to 'docker-compose-local.yml')
-rw-r--r-- | docker-compose-local.yml | 400 |
1 files changed, 400 insertions, 0 deletions
diff --git a/docker-compose-local.yml b/docker-compose-local.yml new file mode 100644 index 0000000..f84368f --- /dev/null +++ b/docker-compose-local.yml @@ -0,0 +1,400 @@ +# Copyright © 2018 AT&T USA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +version: '2' +networks: + localnet: + driver: 'bridge' + driver_opts: + com.docker.network.driver.mtu: ${MTU} +services: +################################################################################ + mariadb: + image: 'mariadb:10.1.11' + ports: + - '3306' + hostname: 'mariadb.local.onap.org' + networks: + localnet: + aliases: + - 'mariadb.local.onap.org' + volumes: + - './volumes/mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d' + - './volumes/mariadb/conf.d:/etc/mysql/conf.d' + environment: + - 'MYSQL_ROOT_PASSWORD=password' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' +################################################################################ + catalog-db-adapter: + image: 'onap/so/catalog-db-adapter' + ports: + - '8082:8082' + hostname: 'catalog-db-adapter.local.onap.org' + networks: + localnet: + aliases: + - 'catalog-db-adapter.local.onap.org' + volumes: + - './volumes/so/ca-certificates/local:/app/ca-certificates' + - './volumes/so/config/catalog-db-adapter/local:/app/config' + environment: + - 'APP=catalog-db-adapter' + - 'CONTAINER_PORT=8082' + - 'COMMON_NAMESPACE=local.onap.org' + - 'JVM_ARGS=-Xms64m -Xmx512m' + - 'DB_HOST=mariadb.local.onap.org' + - 'DB_PORT=3306' + - 'DB_USERNAME=so_user' + - 'DB_PASSWORD=so_User123' + - 'DB_ADMIN_USERNAME=so_admin' + - 'DB_ADMIN_PASSWORD=so_Admin123' + - 'EXIT_DELAY=1800' + depends_on: + - 'mariadb' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' + command: + - '/app/wait-for.sh' + - '-q' + - '-t' + - '300' + - 'mariadb.local.onap.org:3306' + - '--' + - '/app/start-app.sh' +################################################################################ + request-db-adapter: + image: 'onap/so/request-db-adapter' + ports: + - '8083:8083' + hostname: 'request-db-adapter.local.onap.org' + networks: + localnet: + aliases: + - 'request-db-adapter.local.onap.org' + volumes: + - './volumes/so/ca-certificates/local:/app/ca-certificates' + - './volumes/so/config/request-db-adapter/local:/app/config' + environment: + - 'APP=request-db-adapter' + - 'CONTAINER_PORT=8083' + - 'COMMON_NAMESPACE=local.onap.org' + - 'JVM_ARGS=-Xms64m -Xmx512m' + - 'DB_HOST=mariadb.local.onap.org' + - 'DB_PORT=3306' + - 'DB_USERNAME=so_user' + - 'DB_PASSWORD=so_User123' + - 'DB_ADMIN_USERNAME=so_admin' + - 'DB_ADMIN_PASSWORD=so_Admin123' + - 'EXIT_DELAY=1800' + depends_on: + - 'mariadb' + - 'catalog-db-adapter' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' + command: + - '/app/wait-for.sh' + - '-q' + - '-t' + - '300' + - 'catalog-db-adapter.local.onap.org:8082' + - '--' + - '/app/start-app.sh' +################################################################################ + sdnc-adapter: + image: 'onap/so/sdnc-adapter' + ports: + - '8086:8086' + hostname: 'sdnc-adapter.local.onap.org' + networks: + localnet: + aliases: + - 'sdnc-adapter.local.onap.org' + volumes: + - './volumes/so/ca-certificates/local:/app/ca-certificates' + - './volumes/so/config/sdnc-adapter/local:/app/config' + environment: + - 'APP=sdnc-adapter' + - 'CONTAINER_PORT=8086' + - 'COMMON_NAMESPACE=local.onap.org' + - 'JVM_ARGS=-Xms64m -Xmx512m' + - 'EXIT_DELAY=1800' + depends_on: + - 'mariadb' + - 'catalog-db-adapter' + - 'request-db-adapter' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' + command: + - '/app/wait-for.sh' + - '-q' + - '-t' + - '300' + - 'request-db-adapter.local.onap.org:8083' + - '--' + - '/app/start-app.sh' +################################################################################ + openstack-adapter: + image: 'onap/so/openstack-adapter' + ports: + - '8087:8087' + hostname: 'openstack-adapter.local.onap.org' + networks: + localnet: + aliases: + - 'openstack-adapter.local.onap.org' + volumes: + - './volumes/so/ca-certificates/local:/app/ca-certificates' + - './volumes/so/config/openstack-adapter/local:/app/config' + environment: + - 'APP=openstack-adapter' + - 'CONTAINER_PORT=8087' + - 'COMMON_NAMESPACE=local.onap.org' + - 'OPEN_STACK_ENCRYPTED_PASSWORD_HERE=c124921a3a0efbe579782cde8227681e' + - 'OPEN_STACK_KEY_STONE_URL=http://1.2.3.4:5000' + - 'OPEN_STACK_REGION=RegionOne' + - 'OPEN_STACK_SERVICE_TENANT_NAME=service' + - 'OPEN_STACK_USER_NAME=vnf_user' + - 'JVM_ARGS=-Xms64m -Xmx512m' + - 'DB_HOST=mariadb.local.onap.org' + - 'DB_PORT=3306' + - 'DB_USERNAME=so_user' + - 'DB_PASSWORD=so_User123' + - 'DB_ADMIN_USERNAME=so_admin' + - 'DB_ADMIN_PASSWORD=so_Admin123' + - 'EXIT_DELAY=1800' + depends_on: + - 'mariadb' + - 'catalog-db-adapter' + - 'request-db-adapter' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' + command: + - '/app/wait-for.sh' + - '-q' + - '-t' + - '300' + - 'request-db-adapter.local.onap.org:8083' + - '--' + - '/app/start-app.sh' +################################################################################ + vfc-adapter: + image: 'onap/so/vfc-adapter' + ports: + - '8084:8084' + hostname: 'vfc-adapter.local.onap.org' + networks: + localnet: + aliases: + - 'vfc-adapter.local.onap.org' + volumes: + - './volumes/so/ca-certificates/local:/app/ca-certificates' + - './volumes/so/config/vfc-adapter/local:/app/config' + environment: + - 'APP=vfc-adapter' + - 'CONTAINER_PORT=8084' + - 'COMMON_NAMESPACE=local.onap.org' + - 'JVM_ARGS=-Xms64m -Xmx512m' + - 'DB_HOST=mariadb.local.onap.org' + - 'DB_PORT=3306' + - 'DB_USERNAME=so_user' + - 'DB_PASSWORD=so_User123' + - 'EXIT_DELAY=1800' + depends_on: + - 'mariadb' + - 'catalog-db-adapter' + - 'request-db-adapter' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' + command: + - '/app/wait-for.sh' + - '-q' + - '-t' + - '300' + - 'request-db-adapter.local.onap.org:8083' + - '--' + - '/app/start-app.sh' +################################################################################ + sdc-controller: + image: 'onap/so/sdc-controller' + ports: + - '8085:8085' + hostname: 'sdc-controller.local.onap.org' + networks: + localnet: + aliases: + - 'sdc-controller.local.onap.org' + volumes: + - './volumes/so/ca-certificates/local:/app/ca-certificates' + - './volumes/so/config/sdc-controller/local:/app/config' + environment: + - 'APP=sdc-controller' + - 'CONTAINER_PORT=8085' + - 'COMMON_NAMESPACE=local.onap.org' + - 'JVM_ARGS=-Xms64m -Xmx512m' + - 'DB_HOST=mariadb.local.onap.org' + - 'DB_PORT=3306' + - 'DB_USERNAME=so_user' + - 'DB_PASSWORD=so_User123' + - 'EXIT_DELAY=1800' + depends_on: + - 'mariadb' + - 'catalog-db-adapter' + - 'request-db-adapter' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' + command: + - '/app/wait-for.sh' + - '-q' + - '-t' + - '300' + - 'request-db-adapter.local.onap.org:8083' + - '--' + - '/app/start-app.sh' +################################################################################ + bpmn-infra: + image: 'onap/so/bpmn-infra' + ports: + - '8081:8081' + hostname: 'bpmn-infra.local.onap.org' + networks: + localnet: + aliases: + - 'bpmn-infra.local.onap.org' + volumes: + - './volumes/so/ca-certificates/local:/app/ca-certificates' + - './volumes/so/config/bpmn-infra/local:/app/config' + environment: + - 'APP=bpmn-infra' + - 'CONTAINER_PORT=8081' + - 'COMMON_NAMESPACE=local.onap.org' + - 'JVM_ARGS=-Xms64m -Xmx512m' + - 'DB_HOST=mariadb.local.onap.org' + - 'DB_PORT=3306' + - 'DB_USERNAME=so_user' + - 'DB_PASSWORD=so_User123' + - 'EXIT_DELAY=1800' + depends_on: + - 'mariadb' + - 'catalog-db-adapter' + - 'request-db-adapter' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' + command: + - '/app/wait-for.sh' + - '-q' + - '-t' + - '300' + - 'request-db-adapter.local.onap.org:8083' + - '--' + - '/app/start-app.sh' +################################################################################ + api-handler-infra: + image: 'onap/so/api-handler-infra' + ports: + - '8080:8080' + hostname: 'api-handler-infra.local.onap.org' + networks: + localnet: + aliases: + - 'api-handler-infra.local.onap.org' + volumes: + - './volumes/so/ca-certificates/local:/app/ca-certificates' + - './volumes/so/config/api-handler-infra/local:/app/config' + environment: + - 'APP=api-handler-infra' + - 'CONTAINER_PORT=8080' + - 'COMMON_NAMESPACE=local.onap.org' + - 'JVM_ARGS=-Xms64m -Xmx512m' + - 'DB_HOST=mariadb.local.onap.org' + - 'DB_PORT=3306' + - 'DB_USERNAME=so_user' + - 'DB_PASSWORD=so_User123' + - 'EXIT_DELAY=1800' + depends_on: + - 'mariadb' + - 'catalog-db-adapter' + - 'request-db-adapter' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' + command: + - '/app/wait-for.sh' + - '-q' + - '-t' + - '300' + - 'request-db-adapter.local.onap.org:8083' + - '--' + - '/app/start-app.sh' +################################################################################ + so-monitoring: + image: 'onap/so/so-monitoring' + ports: + - '8088:8088' + hostname: 'so-monitoring.local.onap.org' + networks: + localnet: + aliases: + - 'so-monitoring.local.onap.org' + volumes: + - './volumes/so/ca-certificates/local:/app/ca-certificates' + - './volumes/so/config/so-monitoring/local:/app/config' + environment: + - 'APP=so-monitoring' + - 'CONTAINER_PORT=8088' + - 'COMMON_NAMESPACE=local.onap.org' + - 'JVM_ARGS=-Xms64m -Xmx512m' + - 'EXIT_DELAY=1800' + depends_on: + - 'mariadb' + - 'catalog-db-adapter' + - 'request-db-adapter' + logging: + driver: 'json-file' + options: + max-size: '30m' + max-file: '5' + command: + - '/app/wait-for.sh' + - '-q' + - '-t' + - '300' + - 'request-db-adapter.local.onap.org:8083' + - '--' + - '/app/start-app.sh' |