Comments (7)
So far, we recommended changing the default location of a docker data directory with the --data-root
property. Here is more on that topic:
https://stackoverflow.com/questions/36014554/how-to-change-the-default-location-for-docker-create-volume-command
Let me know if that helps somehow.
We also had suggestions from our Discord community for workarounds (you can join there). For example, this is what a community member suggested for the Memgraph Platform (which can probably be applied to Memgraph image as well):
version: "3.9"
services:
memgraph:
image: memgraph/memgraph-platform:latest
ports:
- "7687:7687"
- "3000:3000"
- "7444:7444"
volumes:
- mg_lib:/var/lib
- mg_log:/var/log
- mg_etc:/etc/memgraph
environment:
- MEMGRAPH="--storage-properties-on-edges=true --log-level=TRACE"
entrypoint: ["/usr/bin/supervisord"]
volumes:
mg_lib:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: 'path/on/host'
mg_log:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: 'path/on/host'
mg_etc:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: 'path/on/host'
Tbh, I haven't tried the above, and it should be tested, but I thought it's best I provide you with all the information I have. Here is the thread on Discord.
from memgraph.
Thank you @katarinasupe, your Docker compose manifest worked for me.
version: '3.9'
services:
memgraph:
image: docker.arvancloud.ir/memgraph/memgraph-platform
container_name: memgraph
ports:
- 7687:7687
- 7444:7444
- 3000:3000
environment:
MEMGRAPH: "--memory-limit=1000 --log-level=TRACE --storage-properties-on-edges=true --storage-snapshot-interval-sec=2 --storage-snapshot-retention-count=3 --storage-mode=ON_DISK_TRANSACTIONAL --storage-snapshot-on-exit=true"
volumes:
- mg_lib:/var/lib
- mg_log:/var/log
- mg_etc:/etc/memgraph
deploy:
resources:
limits:
cpus: '1'
memory: 1G
volumes:
mg_lib:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: './memgraph/data'
mg_log:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: './memgraph/log'
mg_etc:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: './memgraph/config'
from memgraph.
That's great to hear @vector-mj 😄 Btw., if you don't mind me asking, what are you working on with Memgraph?
Hi again @katarinasupe
I'm sorry to reply too late. I'm working on my personal social media project with many relations between users, and after some research, I decided to use Memgraph instead of Neo4j for faster queries.
from memgraph.
Glad to hear you decided to use Memgraph 😄 If you have more questions or you'd like to share more about the project with the community, join our Discord server.
from memgraph.
Hi @vector-mj, thank you for opening the issue. We are aware of the bind volumes not working as expected, probably due to file ownership issues. Is this a blocker for you currently or is the Docker volume workaround good enough for you for now?
from memgraph.
Hi @vector-mj, thank you for opening the issue. We are aware of the bind volumes not working as expected, probably due to file ownership issues. Is this a blocker for you currently or is the Docker volume workaround good enough for you for now?
Hi @katarinasupe
I want to send my backups (snapshots) to S3 object storage, and with Docker volumes, I can't do this. Also, I tried to change the file ownership and permissions, but it didn't solve my issue. I think maybe it can be solved in Dockerfile..., Do you have any solution for this case?
from memgraph.
That's great to hear @vector-mj 😄 Btw., if you don't mind me asking, what are you working on with Memgraph?
from memgraph.
Related Issues (20)
- Key error in duration not handled properly
- Add vertex-centric indices
- Implement `SAML` authentication flow
- Optimize efficiency of Storage GC
- Handle JSON object in its entirety to set property values
- Not yet implemented: atom expression HOT 1
- Memgraph default start does not work in Colima
- Provide equivalent to apoc.create.setProperty
- IN_MEMORY_ANALYTICS mode memory spikes on write quries
- Query failed: Trying to get keys from an object that doesn't exist.
- Query failed about a UNION query HOT 1
- Node deleted failed about path of unknown length
- Implement compatibility with Postgres timestamptz format
- Unexpected Error:Query failed: Trying to set properties on a deleted object. HOT 1
- Error:Trying to set properties on a deleted object. HOT 1
- Implement Point in Time Recovery
- Extend and improve HA automatic failover capabilities
- Memgraph core dumps on incorrect query when assigning list container of mixed types from two pattern comprehensions
- Relationships not deleted in ON_DISK_TRANSACTIONAL
- Improve error messaging on Labels from property values
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memgraph.