1
0
Fork 0
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:
Steffen Vogel 2017-06-28 00:39:01 +02:00
parent 1b3fb81872
commit e685d4d872

View file

@ -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