Unverified Commit 7e53e7b4 authored by Reinaldo de Souza Jr's avatar Reinaldo de Souza Jr Committed by Reinaldo de Souza Junior

Works for me

parents
PREKEY_SERVER_IDENTITY=
PREKEY_SERVER_FINGERPRINT=
XMPP_COMPONENTS_SECRET=
.env
keys/*
secrets/*
*.log
version: '3.4'
services:
prekeys-raw:
build: ./raw
command: -address 0.0.0.0 -port 30123 -identity ${PREKEY_SERVER_IDENTITY} -key-file /secrets/server.keys -storage dir:/keys
volumes:
- type: bind
source: ./secrets
target: /secrets
- type: bind
source: ./keys
target: /keys
expose:
- "30123"
prekeys-xmpp:
build: ./xmpp
command: -raw-address prekeys-raw -raw-port 30123 -xmpp-address xmpp-bridge -xmpp-port 31123 -shared-secret ${XMPP_COMPONENTS_SECRET} -name $PREKEY_SERVER_IDENTITY -fingerprint ${PREKEY_SERVER_FINGERPRINT}
depends_on:
- prekeys-raw
- xmpp-bridge
xmpp-bridge:
image: alpine/socat
command: -d -d -d tcp-listen:31123,fork,reuseaddr unix-connect:/xmpp-components.sock
expose:
- "31123"
volumes:
- type: bind
source: /run/prosody-components.sock
target: /xmpp-components.sock
FROM golang:latest
RUN go get -d -v github.com/otrv4/otrng-prekey-server/server/raw
RUN go install -v github.com/otrv4/otrng-prekey-server/server/raw
RUN go env GOPATH
ENTRYPOINT ["/go/bin/raw"]
CMD ["-h"]
FROM golang:latest
RUN go get -d -v github.com/otrv4/prekey-server-xmpp
RUN go install -v github.com/otrv4/prekey-server-xmpp
RUN go env GOPATH
ENTRYPOINT ["/go/bin/prekey-server-xmpp"]
CMD ["-h"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment