worph / OrbitDB-DockerNode

2 stars 0 forks source link

When starting docker compose on MacOS a directory ./peer-id.json and ./keystore is created instead of a file #1

Open silkroadnomad opened 8 months ago

silkroadnomad commented 8 months ago

On my mac a directory ./peer-id.json and ./keystore is created instead of a file and I could not figure out why is that.

worph commented 8 months ago

The peer-id.json is a file specific to this project (it is made to easily export the identity for orbitDB/libp2p) For the keystore folder this the directory for orbitDB (where the keystore and the database data are stored) - Maybe I should rename it since it is not only the keystore but also the data. Anyway those 2 files should be persisted.

silkroadnomad commented 8 months ago

As I found out docker mapping on mac creates a directory instead of a file, if the file doesn't exist. So probably I need to create peer-id.json and keystore locally before starting the docker container.