Change default port in docker to the new
conduit default port 6167 and fix the docker healthchecknext
parent
787e18b2a4
commit
6a96cfaac1
|
@ -61,8 +61,8 @@ LABEL org.opencontainers.image.created=${CREATED} \
|
||||||
org.label-schema.docker.build="docker build . -t matrixconduit/matrix-conduit:latest --build-arg CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml)" \
|
org.label-schema.docker.build="docker build . -t matrixconduit/matrix-conduit:latest --build-arg CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml)" \
|
||||||
maintainer="Weasy666"
|
maintainer="Weasy666"
|
||||||
|
|
||||||
# Standard port on which Rocket launches
|
# Standard port on which Conduit launches. You still need to map the port when using the docker command or docker-compose.
|
||||||
EXPOSE 8000
|
EXPOSE 6167
|
||||||
|
|
||||||
# Copy config files from context and the binary from
|
# Copy config files from context and the binary from
|
||||||
# the "builder" stage to the current stage into folder
|
# the "builder" stage to the current stage into folder
|
||||||
|
@ -90,7 +90,10 @@ RUN apk add --no-cache \
|
||||||
VOLUME ["/srv/conduit/.local/share/conduit"]
|
VOLUME ["/srv/conduit/.local/share/conduit"]
|
||||||
|
|
||||||
# Test if Conduit is still alive, uses the same endpoint as Element
|
# Test if Conduit is still alive, uses the same endpoint as Element
|
||||||
HEALTHCHECK --start-period=2s CMD curl --fail -s http://localhost:8000/_matrix/client/versions || curl -k --fail -s https://localhost:8000/_matrix/client/versions || exit 1
|
HEALTHCHECK --start-period=5s \
|
||||||
|
CMD curl --fail -s "http://localhost:$(grep -m1 -o 'port\s=\s[0-9]*' conduit.toml | grep -m1 -o '[0-9]*')/_matrix/client/versions" || \
|
||||||
|
curl -k --fail -s "https://localhost:$(grep -m1 -o 'port\s=\s[0-9]*' conduit.toml | grep -m1 -o '[0-9]*')/_matrix/client/versions" || \
|
||||||
|
exit 1
|
||||||
|
|
||||||
# Set user to www-data
|
# Set user to www-data
|
||||||
USER www-data
|
USER www-data
|
||||||
|
|
|
@ -18,18 +18,18 @@ services:
|
||||||
GIT_REF: origin/master
|
GIT_REF: origin/master
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 8448:8000
|
- 8448:6167
|
||||||
volumes:
|
volumes:
|
||||||
- db:/srv/conduit/.local/share/conduit
|
- db:/srv/conduit/.local/share/conduit
|
||||||
### Uncomment if you want to use conduit.toml to configure Conduit
|
### Uncomment if you want to use conduit.toml to configure Conduit
|
||||||
### Note: Set env vars will override conduit.toml values
|
### Note: Set env vars will override conduit.toml values
|
||||||
# - ./conduit.toml:/srv/conduit/conduit.toml
|
# - ./conduit.toml:/srv/conduit/conduit.toml
|
||||||
environment:
|
environment:
|
||||||
CONDUIT_SERVER_NAME: localhost:8000 # replace with your own name
|
CONDUIT_SERVER_NAME: localhost:6167 # replace with your own name
|
||||||
CONDUIT_TRUSTED_SERVERS: '["matrix.org"]'
|
CONDUIT_TRUSTED_SERVERS: '["matrix.org"]'
|
||||||
### Uncomment and change values as desired
|
### Uncomment and change values as desired
|
||||||
# CONDUIT_ADDRESS: 127.0.0.1
|
# CONDUIT_ADDRESS: 127.0.0.1
|
||||||
# CONDUIT_PORT: 8000
|
# CONDUIT_PORT: 6167
|
||||||
# CONDUIT_CONFIG: '/srv/conduit/conduit.toml' # if you want to configure purely by env vars, set this to an empty string ''
|
# CONDUIT_CONFIG: '/srv/conduit/conduit.toml' # if you want to configure purely by env vars, set this to an empty string ''
|
||||||
# Available levels are: error, warn, info, debug, trace - more info at: https://docs.rs/env_logger/*/env_logger/#enabling-logging
|
# Available levels are: error, warn, info, debug, trace - more info at: https://docs.rs/env_logger/*/env_logger/#enabling-logging
|
||||||
# CONDUIT_LOG: info # default is: "info,rocket=off,_=off,sled=off"
|
# CONDUIT_LOG: info # default is: "info,rocket=off,_=off,sled=off"
|
||||||
|
|
|
@ -25,11 +25,11 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
environment:
|
environment:
|
||||||
CONDUIT_SERVER_NAME: localhost:8000 # replace with your own name
|
CONDUIT_SERVER_NAME: localhost:6167 # replace with your own name
|
||||||
CONDUIT_TRUSTED_SERVERS: '["matrix.org"]'
|
CONDUIT_TRUSTED_SERVERS: '["matrix.org"]'
|
||||||
### Uncomment and change values as desired
|
### Uncomment and change values as desired
|
||||||
# CONDUIT_ADDRESS: 127.0.0.1
|
# CONDUIT_ADDRESS: 127.0.0.1
|
||||||
# CONDUIT_PORT: 8000
|
# CONDUIT_PORT: 6167
|
||||||
# CONDUIT_CONFIG: '/srv/conduit/conduit.toml' # if want to configure purely by env vars, set this to an empty string ''
|
# CONDUIT_CONFIG: '/srv/conduit/conduit.toml' # if want to configure purely by env vars, set this to an empty string ''
|
||||||
# Available levels are: error, warn, info, debug, trace - more info at: https://docs.rs/env_logger/*/env_logger/#enabling-logging
|
# Available levels are: error, warn, info, debug, trace - more info at: https://docs.rs/env_logger/*/env_logger/#enabling-logging
|
||||||
# CONDUIT_LOG: info # default is: "info,rocket=off,_=off,sled=off"
|
# CONDUIT_LOG: info # default is: "info,rocket=off,_=off,sled=off"
|
||||||
|
|
Loading…
Reference in New Issue