2020-07-23 23:58:08 +02:00
|
|
|
# Conduit
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2020-08-02 12:58:52 +02:00
|
|
|
homeserver:
|
2020-08-04 22:04:27 +02:00
|
|
|
### If you already built the Conduit image with 'docker build', then you can uncomment the
|
|
|
|
### 'image' line and comment out the 'build' option.
|
|
|
|
# image: conduit_homeserver:latest
|
|
|
|
### If you want meaningful labels in you built Conduit image, you should run docker-compose like this:
|
|
|
|
### CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) docker-compose up -d
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
CREATED:
|
|
|
|
VERSION:
|
|
|
|
LOCAL: "false"
|
|
|
|
GIT_REF: HEAD
|
2020-07-23 23:58:08 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2020-08-02 15:55:40 +02:00
|
|
|
- 8448:8000
|
2020-07-23 23:58:08 +02:00
|
|
|
volumes:
|
2020-08-01 15:18:49 +02:00
|
|
|
- db:/srv/conduit/.local/share/conduit
|
2020-08-02 12:58:52 +02:00
|
|
|
### Uncomment if you want to use Rocket.toml to configure Conduit
|
|
|
|
### Note: Set env vars will override Rocket.toml values
|
|
|
|
# - ./Rocket.toml:/srv/conduit/Rocket.toml
|
2020-07-23 23:58:08 +02:00
|
|
|
environment:
|
2020-08-02 12:58:52 +02:00
|
|
|
ROCKET_SERVER_NAME: localhost:8000 # replace with your own name
|
|
|
|
### Uncomment and change values as desired
|
|
|
|
# ROCKET_LOG: normal # Available levels are: off, debug, normal, critical
|
2020-08-02 16:29:50 +02:00
|
|
|
# ROCKET_PORT: 8000
|
2020-08-01 18:20:30 +02:00
|
|
|
# ROCKET_REGISTRATION_DISABLED: 'true'
|
|
|
|
# ROCKET_ENCRYPTION_DISABLED: 'true'
|
|
|
|
# ROCKET_DATABASE_PATH: /srv/conduit/.local/share/conduit
|
|
|
|
# ROCKET_WORKERS: 10
|
|
|
|
# ROCKET_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB
|
2020-07-23 23:58:08 +02:00
|
|
|
|
2020-08-02 15:55:40 +02:00
|
|
|
### Uncomment if you want to use your own Element-Web App.
|
|
|
|
### Note: You need to provide a config.json for Element and you also need a second
|
|
|
|
### Domain or Subdomain for the communication between Element and Conduit
|
|
|
|
### Config-Docs: https://github.com/vector-im/element-web/blob/develop/docs/config.md
|
|
|
|
# element-web:
|
|
|
|
# image: vectorim/riot-web:latest
|
|
|
|
# restart: unless-stopped
|
|
|
|
# ports:
|
|
|
|
# - 8009:80
|
|
|
|
# volumes:
|
|
|
|
# - ./element_config.json:/app/config.json
|
|
|
|
# depends_on:
|
|
|
|
# - homeserver
|
|
|
|
|
2020-07-23 23:58:08 +02:00
|
|
|
volumes:
|
|
|
|
db:
|