Postgres 9.6 or later, fix some more Docker stuff

This commit is contained in:
Neil Alexander 2020-10-20 15:22:40 +01:00
parent 26c237a36c
commit 20b4ef6baf
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
5 changed files with 8 additions and 14 deletions

View file

@ -2,13 +2,12 @@ FROM matrixdotorg/dendrite:latest AS base
FROM alpine:latest
ARG component=monolith
COPY --from=base /build/bin/dendrite-monolith-server /usr/bin
COPY --from=base /build/bin/goose /usr/bin
COPY --from=base /build/bin/create-account /usr/bin
COPY --from=base /build/bin/generate-keys /usr/bin
VOLUME /etc/dendrite
WORKDIR /etc/dendrite
ENTRYPOINT /usr/bin/dendrite-monolith-server $@
ENTRYPOINT ["/usr/bin/dendrite-monolith-server"]

View file

@ -2,13 +2,12 @@ FROM matrixdotorg/dendrite:latest AS base
FROM alpine:latest
ARG component
COPY --from=base /build/bin/dendrite-polylith-multi /usr/bin
COPY --from=base /build/bin/goose /usr/bin
COPY --from=base /build/bin/create-account /usr/bin
COPY --from=base /build/bin/generate-keys /usr/bin
VOLUME /etc/dendrite
WORKDIR /etc/dendrite
ENTRYPOINT /usr/bin/dendrite-polylith-multi $@
ENTRYPOINT ["/usr/bin/dendrite-polylith-multi"]

View file

@ -2,7 +2,7 @@ version: "3.4"
services:
postgres:
hostname: postgres
image: postgres:9.5
image: postgres:9.6
restart: always
volumes:
- ./postgres/create_db.sh:/docker-entrypoint-initdb.d/20-create_db.sh

View file

@ -6,7 +6,6 @@ services:
command: clientapi
volumes:
- ./config:/etc/dendrite
- room_server
networks:
- internal
@ -94,10 +93,7 @@ services:
appservice_api:
hostname: appservice_api
image: matrixdotorg/dendrite-polylith:latest
command: [
"appservice",
"--config=dendrite.yaml"
]
command: appservice
volumes:
- ./config:/etc/dendrite
networks:

View file

@ -24,7 +24,7 @@ use in production environments just yet!
Dendrite requires:
* Go 1.13 or higher
* Postgres 9.5 or higher (if using Postgres databases, not needed for SQLite)
* Postgres 9.6 or higher (if using Postgres databases, not needed for SQLite)
If you want to run a polylith deployment, you also need:
@ -98,7 +98,7 @@ create them automatically at startup.
### Postgres database setup
Assuming that Postgres 9.5 (or later) is installed:
Assuming that Postgres 9.6 (or later) is installed:
* Create role, choosing a new password when prompted: