Updated with volume

This commit is contained in:
Kasper Juul Hermansen 2021-11-14 19:27:53 +01:00
parent 5de62e4f4a
commit a0a4aade97
2 changed files with 7 additions and 2 deletions

1
src/.gitignore vendored
View File

@ -1 +1,2 @@
.env
data/

View File

@ -5,8 +5,12 @@ services:
restart: always
build:
context: backend/db
ports:
- 27017:27017
volumes:
- './data/db:/data/db'
env_file:
- .prod.env
- .env
server:
restart: always
@ -15,7 +19,7 @@ services:
ports:
- 12009:80
env_file:
- .prod.env
- .env
environment:
MONGODB__Host: db
MONGODB__Port: 27017