magic-wormhole/magic-wormhole-mailbox-server

Dockerfile?

syamimerinin opened this issue · 4 comments

Can i make request here?

Magic wormhole services is so awesome and I want to cry .I am more interested to run my own server whether for the rendezvous server(mailbox server) and relay server. Currently succeed with installing the docker for the relay,but for the mailbox server,i see none.

Can the rendezvous server also have docker file?

Here is all you need in your dockerfile..

FROM python:3.8
RUN pip install magic-wormhole-mailbox-server
CMD [ "twist", "wormhole-mailbox","--usage-db=usage.sqlite" ] 

Then you build and run it ..

$ docker build -t magicwormhole Dockerfile
$ docker run -p 4000:4000 -d magicwormhole

And use this to connect..

$ wormhole --relay-url=ws://localhost:4000/v1 send FILENAME

Thank you so much.

Ideally if that was expressed as a pull-request we could merge it :)

Sure, i made a pull request for the readme for a basic docker setup :)
As i'm no security expert and there are lot's of different ways of doing it, i kept it simple.
#21