make drools and nexus containers restartable
use dockerhub image for nexus instead of producing our
own. 9081 is exposed in the host.
Issue-ID: POLICY-575
Change-Id: Ia72303507aee071e0f12e9a77b3ce03bae8b3ed7
Signed-off-by: Jorge Hernandez <jh1730@att.com>
diff --git a/config/drools/base.conf b/config/drools/base.conf
index 6354674..139a62d 100644
--- a/config/drools/base.conf
+++ b/config/drools/base.conf
@@ -22,7 +22,7 @@
# SYSTEM software configuration
POLICY_HOME=/opt/app/policy
-POLICY_LOGS=/var/log/ONAP/policy
+POLICY_LOGS=/var/log/onap/policy/pdpd
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
KEYSTORE_PASSWD=Pol1cy_0nap
diff --git a/docker-compose.yml b/docker-compose.yml
index 282625a..a104c8d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -16,9 +16,12 @@
ports:
- "3306:3306"
nexus:
- image: onap/policy-nexus
+ image: sonatype/nexus
container_name: nexus
hostname: nexus
+ restart: always
+ ports:
+ - "9081:8081"
pap:
image: onap/policy-pe
environment:
@@ -60,6 +63,7 @@
- mariadb
- nexus
hostname: drools
+ restart: always
ports:
- "6969:6969"
- "9696:9696"