Skip to content

Commit

Permalink
feat: add docker compose YAML.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Mar 14, 2024
1 parent b01d50e commit 61977fe
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ ENV CONTENT_LENGTH_WORKAROUND="false"
ENV NAMESPACE_PREFIX="_ooye_"
ENV SENDER_LOCALPART="_ooye_bot"
ENV URL="http://localhost:6693"
# These may be generated with:
# dd if=/dev/urandom bs=32 count=1 2> /dev/null | basenc --base16 | dd conv=lcase 2> /dev/null
ENV HS_TOKEN="[a unique 64 character hex string]"
ENV AS_TOKEN="[a unique 64 character hex string]"

Expand Down
42 changes: 42 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
services:
conduit:
image: matrixconduit/matrix-conduit:latest-commit-0c2cfda3
volumes:
- conduit-data:/var/lib/matrix-conduit/
environment:
CONDUIT_SERVER_NAME: conduit # EDIT THIS
CONDUIT_DATABASE_PATH: /var/lib/matrix-conduit/
CONDUIT_DATABASE_BACKEND: rocksdb
CONDUIT_PORT: 6167
CONDUIT_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB
CONDUIT_ALLOW_REGISTRATION: 'true'
CONDUIT_ALLOW_FEDERATION: 'true'
CONDUIT_ALLOW_CHECK_FOR_UPDATES: 'false'
CONDUIT_TRUSTED_SERVERS: '[]'
#CONDUIT_MAX_CONCURRENT_REQUESTS: 100
#CONDUIT_LOG: warn,rocket=off,_=off,sled=off
CONDUIT_ADDRESS: 0.0.0.0
CONDUIT_CONFIG: '' # Ignore this
ports:
- 6167:6167

ooye:
depends_on:
- conduit
image: ooye
build: .
environment:
SERVER_NAME: localhost
SERVER_ORIGIN: http://conduit:6167
ADMIN_INVITE: zicklag@localhost
URL: http://ooye:6693
HS_TOKEN: 8aa66039222ca2729421e4d600906cb17d39bf2e30048b3e24d1d7979704f229
AS_TOKEN: ff42641357750bc24ff860551da787f31f6acb750202922e8d87b5dfd08e8940
ports:
- 6693:6693
volumes:
- ooye-data:/app/db

volumes:
conduit-data:
ooye-data:
3 changes: 2 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ EOF
echo "Here is your registration YAML:"
echo ""
cat registration.yaml
echo ""

echo "Setting up / seeding database if necessary"
node scripts/seed.js

echo "Starting server"
node start.js
exec node start.js

0 comments on commit 61977fe

Please sign in to comment.