use postgres
This commit is contained in:
parent
dbceee17ed
commit
f78c863d9f
@ -1,5 +1,7 @@
|
|||||||
FROM golang:alpine as builder
|
FROM golang:alpine as builder
|
||||||
|
|
||||||
|
ENV VERSION=120ae016a68c4b65cf443c9577c4d1741e34c8d0
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
git \
|
git \
|
||||||
gcc \
|
gcc \
|
||||||
@ -8,6 +10,7 @@ RUN apk --no-cache add \
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN git clone https://github.com/tulir/mautrix-whatsapp.git
|
RUN git clone https://github.com/tulir/mautrix-whatsapp.git
|
||||||
WORKDIR /build/mautrix-whatsapp
|
WORKDIR /build/mautrix-whatsapp
|
||||||
|
RUN git checkout $VERSION
|
||||||
|
|
||||||
RUN go get
|
RUN go get
|
||||||
RUN go build -o /build/bin/mautrix-whatsapp
|
RUN go build -o /build/bin/mautrix-whatsapp
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
[whatsapp bridge](https://github.com/tulir/mautrix-whatsapp) for the [matrix](http://matrix.org/) network.
|
[whatsapp bridge](https://github.com/tulir/mautrix-whatsapp)
|
||||||
|
for the [matrix](http://matrix.org/) network.
|
||||||
|
|
||||||
# Volumes
|
# Volumes
|
||||||
- `/var/lib/matrix-bridge/data`
|
- `/var/lib/matrix-bridge/data`
|
||||||
@ -19,5 +20,8 @@ Homeserver token (from the generated registration)
|
|||||||
## ADMIN_USER
|
## ADMIN_USER
|
||||||
Matrix id of the admin user.
|
Matrix id of the admin user.
|
||||||
|
|
||||||
|
## DATABASE_DATASOURCE
|
||||||
|
Postgre datasource url
|
||||||
|
|
||||||
# Ports
|
# Ports
|
||||||
- 8080
|
- 8080
|
||||||
|
@ -18,9 +18,9 @@ appservice:
|
|||||||
# Database config.
|
# Database config.
|
||||||
database:
|
database:
|
||||||
# The database type. Only "sqlite3" is supported.
|
# The database type. Only "sqlite3" is supported.
|
||||||
type: sqlite3
|
type: postgres
|
||||||
# The database URI. Usually file name. https://github.com/mattn/go-sqlite3#connection-string
|
# The database URI. Usually file name. https://github.com/mattn/go-sqlite3#connection-string
|
||||||
uri: /var/lib/matrix-bridge/data/mautrix-whatsapp.db
|
uri: {{ DATABASE_DATASOURCE }}
|
||||||
# Path to the Matrix room state store.
|
# Path to the Matrix room state store.
|
||||||
state_store_path: /var/lib/matrix-bridge/data/mx-state.json
|
state_store_path: /var/lib/matrix-bridge/data/mx-state.json
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user