mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
use a docker volume for mongodb persistence
not every docker installation can mount /opt/database
This commit is contained in:
parent
1b3fb81872
commit
e685d4d872
1 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
|||
version: "2"
|
||||
|
||||
volumes:
|
||||
database:
|
||||
driver: local
|
||||
|
||||
services:
|
||||
frontend:
|
||||
build:
|
||||
|
@ -28,6 +32,6 @@ services:
|
|||
image: mongo:latest
|
||||
user: mongodb
|
||||
volumes:
|
||||
- /opt/database:/data/db
|
||||
- database:/data/db
|
||||
restart: always
|
||||
user: mongodb
|
||||
user: mongodb
|
Loading…
Add table
Reference in a new issue