aboutsummaryrefslogtreecommitdiffstats
path: root/compose/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'compose/docker-compose.yml')
-rw-r--r--compose/docker-compose.yml25
1 files changed, 23 insertions, 2 deletions
diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml
index 0264b290..60ed0bc7 100644
--- a/compose/docker-compose.yml
+++ b/compose/docker-compose.yml
@@ -35,7 +35,7 @@ services:
container_name: policy-db-migrator
hostname: policy-db-migrator
depends_on:
- - mariadb
+ - mariadb
expose:
- 6824
env_file: ./config/db/db.conf
@@ -51,6 +51,27 @@ services:
'/opt/app/policy/bin/db_migrator_policy_init.sh',
'mariadb', '3306'
]
+ policy-db-migrator-clamp:
+ image: ${CONTAINER_LOCATION}onap/policy-db-migrator:${POLICY_DOCKER_VERSION}
+ container_name: policy-db-migrator-clamp
+ hostname: policy-db-migrator-clamp
+ depends_on:
+ - mariadb
+ expose:
+ - 6824
+ env_file: ./config/db/db.conf
+ environment:
+ SQL_DB: clampacm
+ SQL_HOST: mariadb
+ volumes:
+ - ./config/db-migrator/init.sh:/opt/app/policy/bin/db_migrator_policy_init.sh:ro
+ - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
+ entrypoint: /opt/app/policy/bin/wait_for_port.sh
+ command: [
+ '-c',
+ '/opt/app/policy/bin/db_migrator_policy_init.sh',
+ 'mariadb', '3306'
+ ]
simulator:
image: ${CONTAINER_LOCATION}onap/policy-models-simulator:${POLICY_MODELS_VERSION}
container_name: simulator
@@ -240,7 +261,7 @@ services:
image: ${CONTAINER_LOCATION}onap/policy-clamp-runtime-acm:${POLICY_CLAMP_VERSION}
container_name: policy-clamp-runtime-acm
depends_on:
- - mariadb
+ - policy-db-migrator-clamp
- kafka
- policy-clamp-ac-http-ppnt
- policy-clamp-ac-k8s-ppnt