From 012befcecaee790a7d995a4660c90fb6e2dce71f Mon Sep 17 00:00:00 2001 From: Neil-Jocelyn Schark <neil.schark@h-da.de> Date: Mon, 25 Mar 2024 09:20:40 +0000 Subject: [PATCH] add mongodb to docker-compose --- docker-compose.yml | 21 +++++++++++++++++++++ docker-compose_integration_test.yml | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 5eaa84e6..6a45ac72 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,24 @@ services: ekms-net: ipv4_address: 172.100.20.13 + mongodb: + image: mongo:7 + environment: + MONGO_INITDB_ROOT_USERNAME: root + MONGO_INITDB_ROOT_PASSWORD: example + volumes: + - mongo-volume:/data/db + + mongo-express: + image: mongo-express:1 + ports: + - 127.0.0.1:8088:8081 + environment: + ME_CONFIG_MONGODB_ADMINUSERNAME: root + ME_CONFIG_MONGODB_ADMINPASSWORD: example + ME_CONFIG_MONGODB_SERVER: mongodb + ME_CONFIG_BASICAUTH_USERNAME: '' + ME_CONFIG_BASICAUTH_PASSWORD: '' qlayer01: image: quantumlayer @@ -128,3 +146,6 @@ networks: config: - subnet: "172.100.20.0/24" name: ekms-net + +volumes: + mongo-volume: diff --git a/docker-compose_integration_test.yml b/docker-compose_integration_test.yml index 96eba560..e07b03c8 100644 --- a/docker-compose_integration_test.yml +++ b/docker-compose_integration_test.yml @@ -37,3 +37,20 @@ services: image: akms-simulator ports: - "127.0.0.1:4445:4444" + + mongodb: + image: mongo:7 + environment: + MONGO_INITDB_ROOT_USERNAME: root + MONGO_INITDB_ROOT_PASSWORD: example + + mongo-express: + image: mongo-express:latest + ports: + - 127.0.0.1:8088:8081 + environment: + ME_CONFIG_MONGODB_ADMINUSERNAME: root + ME_CONFIG_MONGODB_ADMINPASSWORD: example + ME_CONFIG_MONGODB_SERVER: mongodb + ME_CONFIG_BASICAUTH_USERNAME: '' + ME_CONFIG_BASICAUTH_PASSWORD: '' -- GitLab