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