Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add mongo to docker compose

Maidul Islam4dc9a3692e3c
diff --git a/docker-compose.pg.yml b/docker-compose.pg.yml
index f20b5bfaf3..64e6bae87b 100644
--- a/docker-compose.pg.yml
+++ b/docker-compose.pg.yml
@@ -96,8 +96,38 @@ services:
- 1025:1025 # SMTP server
- 8025:8025 # Web UI
+ mongo:
+ image: mongo
+ container_name: infisical-dev-mongo
+ restart: always
+ env_file: .env
+ environment:
+ - MONGO_INITDB_ROOT_USERNAME=root
+ - MONGO_INITDB_ROOT_PASSWORD=example
+ volumes:
+ - mongo-data:/data/db
+ ports:
+ - 27017:27017
+
+ mongo-express:
+ container_name: infisical-dev-mongo-express
+ image: mongo-express
+ restart: always
+ depends_on:
+ - mongo
+ env_file: .env
+ environment:
+ - ME_CONFIG_MONGODB_ADMINUSERNAME=root
+ - ME_CONFIG_MONGODB_ADMINPASSWORD=example
+ - ME_CONFIG_MONGODB_URL=mongodb://root:example@mongo:27017/
+ ports:
+ - 8081:8081
+
+
volumes:
postgres-data:
driver: local
redis_data:
driver: local
+ mongo-data:
+ driver: local