aboutsummaryrefslogtreecommitdiffstats
path: root/development/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'development/docker-compose.yml')
-rw-r--r--development/docker-compose.yml90
1 files changed, 90 insertions, 0 deletions
diff --git a/development/docker-compose.yml b/development/docker-compose.yml
new file mode 100644
index 0000000..6c6a0ad
--- /dev/null
+++ b/development/docker-compose.yml
@@ -0,0 +1,90 @@
+version: '3'
+
+volumes:
+ postgres_data:
+ driver: local
+
+services:
+ postgres:
+ container_name: postgres-keycloak
+ image: "${POSTGRES_IMAGE}:${POSTGRES_VERSION}"
+ volumes:
+ - postgres_data:/var/lib/postgresql/data
+ environment:
+ POSTGRES_DB: ${KEYCLOAK_DB}
+ POSTGRES_USER: ${KEYCLOAK_DB_USER}
+ POSTGRES_PASSWORD: ${KEYCLOAK_DB_PASSWORD}
+ keycloak:
+ container_name: keycloak-bff
+ image: "${KEYCLOAK_IMAGE}:${KEYCLOAK_VERSION}"
+ environment:
+ DB_VENDOR: POSTGRES
+ DB_ADDR: postgres-keycloak
+ DB_DATABASE: ${KEYCLOAK_DB}
+ DB_USER: ${KEYCLOAK_DB_USER}
+ DB_SCHEMA: public
+ DB_PASSWORD: ${KEYCLOAK_DB_PASSWORD}
+ KEYCLOAK_USER: ${KEYCLOAK_USER}
+ KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
+ KEYCLOAK_IMPORT: /config/onap-realm.json
+ ports:
+ - 8080:8080
+ volumes:
+ - ./config:/config
+ depends_on:
+ - postgres
+ mongo-history:
+ container_name: mongo-history
+ image: "${MONGO_IMAGE}:${MONGO_VERSION}"
+ environment:
+ MONGO_INITDB_ROOT_USERNAME: ${PORTALHISTORY_USERNAME}
+ MONGO_INITDB_ROOT_PASSWORD: ${PORTALHISTORY_PASSWORD}
+ portal-history:
+ container_name: portal-history
+ image: "${IMAGE_REPOSITORY}/${PORTAL_HISTORY_IMAGE_NAME}:${PORTAL_HISTORY_IMAGE_TAG}"
+ ports:
+ - 9002:9002
+ environment:
+ PORTALHISTORY_USERNAME: ${PORTALHISTORY_USERNAME}
+ PORTALHISTORY_PASSWORD: ${PORTALHISTORY_PASSWORD}
+ PORTALHISTORY_DATABASE: ${PORTALHISTORY_DATABASE}
+ KEYCLOAK_URL: ${KEYCLOAK_URL}
+ KEYCLOAK_REALM: ${KEYCLOAK_REALM}
+ PORTALHISTORY_HOST: ${PORTALHISTORY_HOST}
+ PORTALHISTORY_PORT: ${PORTALHISTORY_PORT}
+ depends_on:
+ - mongo-history
+ mongo-prefs:
+ container_name: mongo-prefs
+ image: "${MONGO_IMAGE}:${MONGO_VERSION}"
+ environment:
+ MONGO_INITDB_ROOT_USERNAME: ${PORTALPREFS_USERNAME}
+ MONGO_INITDB_ROOT_PASSWORD: ${PORTALPREFS_PASSWORD}
+ portal-prefs:
+ container_name: portal-prefs
+ image: "${IMAGE_REPOSITORY}/${PORTAL_PREFS_IMAGE_NAME}:${PORTAL_PREFS_IMAGE_TAG}"
+ ports:
+ - 9001:9001
+ environment:
+ PORTALPREFS_USERNAME: ${PORTALPREFS_USERNAME}
+ PORTALPREFS_PASSWORD: ${PORTALPREFS_PASSWORD}
+ PORTALPREFS_DATABASE: ${PORTALPREFS_DATABASE}
+ KEYCLOAK_URL: ${KEYCLOAK_URL}
+ KEYCLOAK_REALM: ${KEYCLOAK_REALM}
+ PORTALPREFS_HOST: ${PORTALPREFS_HOST}
+ PORTALPREFS_PORT: ${PORTALPREFS_PORT}
+ depends_on:
+ - mongo-prefs
+ portal-bff:
+ container_name: portal-bff
+ image: "${IMAGE_REPOSITORY}/${PORTAL_BFF_IMAGE_NAME}:${PORTAL_BFF_IMAGE_TAG}"
+ ports:
+ - 9080:9080
+ environment:
+ KEYCLOAK_URL: ${KEYCLOAK_URL}
+ KEYCLOAK_REALM: ${KEYCLOAK_REALM}
+ KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID}
+ KEYCLOAK_CLIENT_SECRET: ${KEYCLOAK_CLIENT_SECRET}
+ PORTAL_SERVICE_URL: ${PORTAL_SERVICE_URL}
+ PORTAL_PREFS_URL: ${PORTAL_PREFS_URL}
+ PORTAL_HISTORY_URL: ${PORTAL_HISTORY_URL}