Skip to content

Commit d784be6

Browse files
Merge pull request matrix-hacks#47 from Roshless/master
Add docker example to README
2 parents 63b4e1b + 49867c4 commit d784be6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,31 @@ Restart your homeserver:
9696
systemctl restart matrix-synapse.service
9797
```
9898

99+
## run in docker
100+
101+
You can also use the bridge with docker. Proceed with steps normally but instead of running script or service, compile the docker image:
102+
103+
```
104+
docker build -t matrix-puppet-facebook .
105+
```
106+
107+
Of course you need working docker on your system.
108+
109+
After that you can run the container:
110+
111+
```
112+
docker run -d --restart=always -p 8090:8090 matrix-puppet-facebook
113+
```
114+
115+
-d is --detach (runs in background), --restart is needed for restarting bridge container when it quits
116+
(it does that every few hours), -p binds port 8090 in container to 8090 on host
117+
118+
You can verify that containers works by running:
119+
120+
```
121+
docker ps
122+
```
123+
99124
## notes
100125

101126
\* Just to explain the reason for `start.sh`, facebook-chat-api contains a bug - https://github.com/Schmavery/facebook-chat-api/issues/555 that necessitates reconnecting to facebook periodically, otherwise message sending will start to fail after a couple of days. `start.sh` ensures that the process restarts properly any time it dies.

0 commit comments

Comments
 (0)