Fix Docker support
- Add .dockerignore files - Make default Node config force-overwrite its socket file - puppet.sock -> rpc.sock - Warn against starting bridge module before node module
This commit is contained in:
parent
e1a03797d8
commit
f47bcd3f0c
10
.dockerignore
Normal file
10
.dockerignore
Normal file
@ -0,0 +1,10 @@
|
||||
.editorconfig
|
||||
logs
|
||||
.venv
|
||||
start
|
||||
config.yaml
|
||||
registration.yaml
|
||||
*.db
|
||||
*.pickle
|
||||
node_modules
|
||||
**/*.sock
|
1
SETUP.md
1
SETUP.md
@ -93,6 +93,7 @@ These instructions describe how to run the bridge with Docker containers.
|
||||
1. Generate the appservice registration by running the container again, and update your homeserver configuration to accept it
|
||||
1. Run the bridge module with `docker run --restart unless-stopped -v $(pwd):/data:z matrix-appservice-kakaotalk`
|
||||
* Additionally, you should either add the bridge to the same Docker network as your homeserver and database with `--network=<name>` (when they are running in Docker), or expose the correct port(s) with `-p <port>:<port>` or `--network=host` (when they are running outside Docker).
|
||||
* If the Node module is configured to use a unix socket, make sure to start the bridge module's container _after_ the Node module's container. Otherwise, the bridge module may not be able to find the socket file.
|
||||
|
||||
## Upgrading
|
||||
Simply `git pull` or `git rebase` the latest changes, rerun all `docker build` commands, then run new containers for the freshly-built images.
|
||||
|
1
node/.dockerignore
Normal file
1
node/.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
node_modules
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"listen": {
|
||||
"type": "unix",
|
||||
"path": "/data/puppet.sock",
|
||||
"force": false
|
||||
"path": "/data/rpc.sock",
|
||||
"force": true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user