summaryrefslogtreecommitdiffstats
path: root/development/docker-compose.yml
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-04-14 11:39:12 +0000
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-04-14 11:39:12 +0000
commita29488d0f476eae0a7821026ded3cf538256757b (patch)
tree4ad1d38150cea6cea0659fed0c15d5bf05ad42fd /development/docker-compose.yml
parenteeb1ede1a2ae8c55a4d432db80394e02506696fe (diff)
Upload preferences
Issue-ID: PORTAL-1082 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: I265e0c8be481a279347aa653acc483c5017c996d
Diffstat (limited to 'development/docker-compose.yml')
-rw-r--r--development/docker-compose.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/development/docker-compose.yml b/development/docker-compose.yml
new file mode 100644
index 0000000..b08f7d5
--- /dev/null
+++ b/development/docker-compose.yml
@@ -0,0 +1,40 @@
+version: '3'
+
+volumes:
+ postgres_data:
+ driver: local
+
+services:
+ postgres:
+ 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:
+ image: "${KEYCLOAK_IMAGE}:${KEYCLOAK_VERSION}"
+ environment:
+ DB_VENDOR: POSTGRES
+ DB_ADDR: postgres
+ 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:
+ image: "${MONGO_IMAGE}:${MONGO_VERSION}"
+ ports:
+ - 27017:27017
+ environment:
+ MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
+ MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}