diff options
Diffstat (limited to 'docker-compose')
-rw-r--r-- | docker-compose/.env | 22 | ||||
-rw-r--r-- | docker-compose/cassandra.yml | 5 | ||||
-rw-r--r-- | docker-compose/debug.yml | 17 | ||||
-rw-r--r-- | docker-compose/docker-compose.yml | 37 |
4 files changed, 81 insertions, 0 deletions
diff --git a/docker-compose/.env b/docker-compose/.env new file mode 100644 index 00000000..58f6cb30 --- /dev/null +++ b/docker-compose/.env @@ -0,0 +1,22 @@ +IMAGE_TAG=latest +REGISTRY=nexus3.onap.org:10001/ +JAVA_OPTIONS=-Xmx1536m -Xms1536m +# CS_HOST is set to a dummy string "yyy". This pattern will be used as an identifier to be replaced by the actual +# Cassandra hostname or IP address at runtime +CS_HOST=yyy +CS_AUTHENTICATE=false +CS_USER= +CS_PASSWORD= + +CASSANDRA_INIT_PORT=9160 +CASSANDRA_PORT=9042 +BACKEND_DEBUG_PORT=7001 + +# SDC_HOST is set to a dummy string "yyy". This pattern will be used as an identifier to be replaced by the actual SDC +# hostname or IP address at runtime +SDC_HOST=yyy +SDC_PROTOCOL=HTTP +SDC_USER=workflow +SDC_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U +FRONTEND_PORT=8184 +FRONTEND_DEBUG_PORT=7000
\ No newline at end of file diff --git a/docker-compose/cassandra.yml b/docker-compose/cassandra.yml new file mode 100644 index 00000000..251b4c99 --- /dev/null +++ b/docker-compose/cassandra.yml @@ -0,0 +1,5 @@ +version: '3' +services: + + cassandra: + image: "cassandra:2.1" diff --git a/docker-compose/debug.yml b/docker-compose/debug.yml new file mode 100644 index 00000000..de0873f1 --- /dev/null +++ b/docker-compose/debug.yml @@ -0,0 +1,17 @@ +version: '3' +services: + + # Added debug configurations - exposing port and added required JAVA_OPTIONS for debug + # for both backend and frontend + + workflow-backend: + ports: + - "${BACKEND_DEBUG_PORT}:${BACKEND_DEBUG_PORT}" + environment: + - JAVA_OPTIONS=${JAVA_OPTIONS} -Xdebug -agentlib:jdwp=transport=dt_socket,address=${BACKEND_DEBUG_PORT},server=y,suspend=n + + workflow-frontend: + ports: + - "${FRONTEND_DEBUG_PORT}:${FRONTEND_DEBUG_PORT}" + environment: + - JAVA_OPTIONS=${JAVA_OPTIONS} -Xdebug -agentlib:jdwp=transport=dt_socket,address=${FRONTEND_DEBUG_PORT},server=y,suspend=n
\ No newline at end of file diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml new file mode 100644 index 00000000..daadff0e --- /dev/null +++ b/docker-compose/docker-compose.yml @@ -0,0 +1,37 @@ +version: '3' +services: + + workflow-cassandra-init: + image: "${REGISTRY}onap/workflow-init:${IMAGE_TAG}" + environment: + - CS_HOST + - CS_AUTHENTICATE + - CS_USER + - CS_PASSWORD + - CS_PORT=${CASSANDRA_INIT_PORT} + + workflow-backend: + depends_on: + - workflow-cassandra-init + image: "${REGISTRY}onap/workflow-backend:${IMAGE_TAG}" + environment: + - JAVA_OPTIONS + - CS_HOSTS=${CS_HOST} + - CS_USER + - CS_PASSWORD + - CS_PORT=${CASSANDRA_PORT} + - SDC_PROTOCOL + - SDC_ENDPOINT="${SDC_HOST}:8080" + - SDC_USER + - SDC_PASSWORD + + workflow-frontend: + depends_on: + - workflow-cassandra-init + - workflow-backend + image: "${REGISTRY}onap/workflow-frontend:${IMAGE_TAG}" + ports: + - "${FRONTEND_PORT}:8080" + environment: + - JAVA_OPTIONS + - BACKEND=http://workflow-backend:8080 |