mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-22 01:24:54 +02:00
MongoDB Init DB import logic added
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Use the official MongoDB imagee
|
||||
FROM mongo:latest
|
||||
|
||||
# Create a directory to host initialization scripts
|
||||
RUN mkdir -p /docker-entrypoint-initdb.d
|
||||
|
||||
# Copy default data JSON files to the initialization directory
|
||||
COPY ./default-data/*.json /docker-entrypoint-initdb.d/
|
||||
|
||||
# Execute the initialization script during container startup
|
||||
CMD ["mongod"]
|
||||
Reference in New Issue
Block a user