From 89db4a1310ea675f62a88a453c516370c3ebdb20 Mon Sep 17 00:00:00 2001 From: Lee Date: Tue, 23 Apr 2024 03:49:18 +0000 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index e706b37..f96f8e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,4 +9,14 @@ services: image: fascinated/paste-backend:latest restart: always ports: - - 3005:3000 \ No newline at end of file + - 3005:3000 + mongo: + image: mongo:latest + restart: always + environment: + MONGO_INITDB_ROOT_USERNAME: root + MONGO_INITDB_ROOT_PASSWORD: root + ports: + - 27017:27017 + volumes: + - ./data:/data/db \ No newline at end of file