diff options
Diffstat (limited to 'extra')
-rw-r--r-- | extra/docker/clamp/clamp.env | 2 | ||||
-rw-r--r-- | extra/docker/clamp/docker-compose.yml | 20 |
2 files changed, 13 insertions, 9 deletions
diff --git a/extra/docker/clamp/clamp.env b/extra/docker/clamp/clamp.env index fee3152e9..ae6dbec11 100644 --- a/extra/docker/clamp/clamp.env +++ b/extra/docker/clamp/clamp.env @@ -1,2 +1,2 @@ ### Be careful, this must be in one line only ### -SPRING_APPLICATION_JSON={"spring.datasource.cldsdb.url":"jdbc:mariadb:sequential://db:3306/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3"}
\ No newline at end of file +SPRING_APPLICATION_JSON={"spring.datasource.cldsdb.url":"jdbc:mariadb:sequential://db:3306/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3","spring.profiles.active":"clamp-default,clamp-default-user,clamp-sdc-controller-new","clamp.config.policy.api.url":"http4://third-party-proxy:8085","clamp.config.policy.pap.url":"http4://third-party-proxy:8085","clamp.config.dcae.inventory.url":"http://third-party-proxy:8085","clamp.config.dcae.deployment.url":"http4://third-party-proxy:8085"} diff --git a/extra/docker/clamp/docker-compose.yml b/extra/docker/clamp/docker-compose.yml index f41473e9c..7026de916 100644 --- a/extra/docker/clamp/docker-compose.yml +++ b/extra/docker/clamp/docker-compose.yml @@ -1,6 +1,12 @@ -version: '2' +version: '3.1' services: + clamp-frontend: + image: onap/clamp-frontend + depends_on: + - clamp-backend + ports: + - "443:443" db: image: mariadb:10.3.12 volumes: @@ -12,23 +18,21 @@ services: ports: - "3306:3306" - clamp: + clamp-backend: image: onap/clamp-backend - volumes: - - "./config/:/opt/clamp/config:rw" depends_on: - db + - third-party-proxy env_file: - clamp.env ports: - - "8080:8080" - "8443:8443" - - third_party_proxy: + + third-party-proxy: image: python:2-slim volumes: - "../../../src/test/resources/http-cache/example/:/thirdparty:rw" - "../../../src/test/resources/http-cache/:/script/:ro" ports: - "8085:8085" - command: /bin/sh -c "pip install requests && pip install simplejson && python -u /script/third_party_proxy.py -v true --port 8085 --root /thirdparty --proxyaddress third_party_proxy:8085" + command: /bin/sh -c "pip install requests && pip install simplejson && python -u /script/third_party_proxy.py -v true --port 8085 --root /thirdparty --proxyaddress third-party-proxy:8085" |