Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My docker-compose.yml config / How to run bbctl in Docker compose #51

Open
devnoname120 opened this issue Dec 29, 2024 · 1 comment
Open

Comments

@devnoname120
Copy link

Create a file docker-compose.yml or compose.yml:

x-bbctl-template: &bbctl
  image: ghcr.io/beeper/bridge-manager:latest
  restart: unless-stopped
  entrypoint: ['/usr/local/bin/bbctl', 'run', '--no-override-config']
  volumes:
    - ./data:/data
  environment:
    MATRIX_ACCESS_TOKEN: ${MATRIX_ACCESS_TOKEN}
    BBCTL_CONFIG: /data/bbctl.json
    BEEPER_ENV: prod
    DATA_DIR: /data
    DB_DIR: /data/db
  env_file:
    - .env
 
services:
  signal:
    <<: *bbctl
    command: sh-mautrix-signal
  instagram:
    <<: *bbctl
    command: sh-mautrix-instagram
  facebook:
    <<: *bbctl
    command: sh-mautrix-facebook
  whatsapp:
    <<: *bbctl
    command: sh-mautrix-whatsapp
  telegram:
    <<: *bbctl
    command: sh-mautrix-telegram
  linkedin:
    <<: *bbctl
    command: sh-mautrix-linkedin
  twitter:
    <<: *bbctl
    command: sh-mautrix-twitter
  discord:
    <<: *bbctl
    command: sh-mautrix-discord
  slack:
    <<: *bbctl
    command: sh-mautrix-slack

Then in the same directory create a .env file and put your Matrix token inside:

MATRIX_ACCESS_TOKEN=syt_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

You can then start the containers:

docker compose up --detach

Note: If you need to manually run a bbctl command you can always do something like this (here it's for logging in Beeper):

docker run --rm -it -v ./data:/data --env-file .env -e "BBCTL_CONFIG=/data/bbctl.json" -e "BEEPER_ENV=prod" -e "DATA_DIR=/data" -e "DB_DIR=/data/db" --entrypoint bbctl ghcr.io/beeper/bridge-manager:latest login-password
@phaphaya
Copy link

phaphaya commented Jan 16, 2025

Hi @devnoname120 ,

thanks so much for this! However, I'm trying to run this on a Synology NAS, using Container Manager, and I have a problem that all the containers keeps stopping almost immediately after starting.

Containers of the inividual bridges stop as well with logs containing "You're not logged in" despite providing MATRIX_ACCESS_TOKEN in the .env file.

Have you encountered this problem? Can you give me a hand please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants