Updated with volume
This commit is contained in:
parent
5de62e4f4a
commit
a0a4aade97
1
src/.gitignore
vendored
1
src/.gitignore
vendored
@ -1 +1,2 @@
|
||||
.env
|
||||
data/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user