signal-cli-rest-api/docker-compose.yml
2026-06-21 11:18:16 +02:00

27 lines
1.1 KiB
YAML

services:
# JRE variant (default) -- use with MODE=normal or MODE=json-rpc
signal-cli-rest-api:
# image: bbernhard/signal-cli-rest-api:latest
build:
context: "."
dockerfile: Dockerfile
target: ${BUILD_TARGET}
environment:
- MODE=${RUN_MODE} #supported modes: normal, json-rpc
#- AUTO_RECEIVE_SCHEDULE=0 22 * * * #enable this parameter on demand (see description below)
ports:
- "8080:8080" #map docker port 8080 to host port 8080.
volumes:
- "./signal-cli-config:/home/.local/share/signal-cli" #map "signal-cli-config" folder on host system into docker container. the folder contains the password and cryptographic keys when a new number is registered
# Native variant -- use with MODE=native or MODE=json-rpc-native
# Uncomment to use the native variant (smaller image, no Java runtime)
# signal-cli-rest-api-native:
# image: bbernhard/signal-cli-rest-api:latest-native
# environment:
# - MODE=native #supported modes: native, json-rpc-native
# ports:
# - "8080:8080"
# volumes:
# - "./signal-cli-config:/home/.local/share/signal-cli"