Added volume to MongoDB container.
This commit is contained in:
parent
020225a40b
commit
8ae1389728
|
@ -5,3 +5,4 @@ api
|
|||
Dockerfile*
|
||||
node_modules
|
||||
api/media
|
||||
mongo
|
|
@ -11,6 +11,7 @@ build
|
|||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
mongo
|
||||
|
||||
api/media
|
||||
api/.ash_history
|
||||
|
|
|
@ -5,7 +5,7 @@ WORKDIR /home/node
|
|||
|
||||
VOLUME /home/node/node_modules
|
||||
|
||||
COPY package*.json .
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm i -g npm@latest \
|
||||
&& npm ci --legacy-peer-deps
|
|
@ -5,6 +5,8 @@ version: "3"
|
|||
services:
|
||||
mongo:
|
||||
image: mongo
|
||||
volumes:
|
||||
- ./mongo:/data/db
|
||||
restart: unless-stopped
|
||||
|
||||
link-warden-api:
|
||||
|
|
Ŝarĝante…
Reference in New Issue