--- version: "3.8" services: telegram-bridge: image: dock.mau.dev/mautrix/telegram:1f5b91cbec7866663d8dd8f4c9a62115e2905552-amd64 configs: - source: telegram_bridge_yaml target: /data/config.yaml environment: - APP_SERVICE_BOT_USERNAME - APP_SERVICE_DISPLAY_NAME - APP_SERVICE_ID - HOMESERVER_DOMAIN - HOMESERVER_URL - VERIFY_SSL - ENABLE_ENCRYPTION - TELEGRAM_APP_ID secrets: - telegram_api_hash - telegram_bot_token - telegram_db_password volumes: - telegram-data:/data telegram-db: image: postgres:13-alpine secrets: - telegram_db_password environment: - LC_COLLATE=C - LC_CTYPE=C - POSTGRES_DB=telegrambridge - POSTGRES_INITDB_ARGS="-E \"UTF8\"" - POSTGRES_PASSWORD_FILE=/run/secrets/telegram_db_password - POSTGRES_USER=telegrambridge networks: - internal healthcheck: test: ["CMD", "pg_isready", "-U", "synapse"] volumes: - telegram-postgres:/var/lib/postgresql/data configs: telegram_bridge_yaml: name: ${STACK_NAME}_telegram_bridge_yaml_${TELEGRAM_BRIDGE_YAML_VERSION} file: telegram-bridge.yaml.tmpl template_driver: golang volumes: telegram-data: telegram-postgres: secrets: telegram_db_password: external: true name: ${STACK_NAME}_telegram_db_password_${SECRET_TELEGRAM_DB_PASSWORD_VERSION} telegram_api_hash: external: true name: ${STACK_NAME}_telegram_api_hash_${SECRET_TELEGRAM_API_HASH_VERSION} telegram_bot_token: external: true name: ${STACK_NAME}_telegram_bot_token_${SECRET_TELEGRAM_BOT_TOKEN_VERSION}