Skip to content
Snippets Groups Projects
Commit 012befce authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

add mongodb to docker-compose

parent a7726824
No related branches found
No related tags found
1 merge request!71Draft: Resolve "Create DB connection instead of using memory only"
Pipeline #187640 passed
...@@ -35,6 +35,24 @@ services: ...@@ -35,6 +35,24 @@ services:
ekms-net: ekms-net:
ipv4_address: 172.100.20.13 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: qlayer01:
image: quantumlayer image: quantumlayer
...@@ -128,3 +146,6 @@ networks: ...@@ -128,3 +146,6 @@ networks:
config: config:
- subnet: "172.100.20.0/24" - subnet: "172.100.20.0/24"
name: ekms-net name: ekms-net
volumes:
mongo-volume:
...@@ -37,3 +37,20 @@ services: ...@@ -37,3 +37,20 @@ services:
image: akms-simulator image: akms-simulator
ports: ports:
- "127.0.0.1:4445:4444" - "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: ''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment