summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index a89b7260..4331a5a8 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -43,3 +43,31 @@ services:
# uncomment in production
# volumes:
# - "/data/mariadb:/var/lib/mysql"
+ mongo:
+ build:
+ context: ./mongodb
+ restart: on-failure
+ environment:
+ MONGO_INITDB_ROOT_USERNAME: root
+ MONGO_INITDB_ROOT_PASSWORD: rootpassword
+ MONGO_INITDB_DATABASE: admin
+ OPENDC_DB: opendc
+ OPENDC_DB_USERNAME: opendc
+ OPENDC_DB_PASSWORD: opendcpassword
+ ports:
+ - 27017:27017
+ #volumes:
+ # - mongo-volume:/data/db
+
+ mongo-express:
+ image: mongo-express
+ restart: on-failure
+ ports:
+ - 8082:8081
+ environment:
+ ME_CONFIG_MONGODB_ADMINUSERNAME: root
+ ME_CONFIG_MONGODB_ADMINPASSWORD: rootpassword
+
+volumes:
+ mongo-volume:
+ external: false \ No newline at end of file