services: # All-in-one variant -- supports all modes: normal, json-rpc, native, json-rpc-native # This is the backwards-compatible default (same as the original image). 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, native, json-rpc-native #- 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 # JRE-only variant -- lighter, use with MODE=normal or MODE=json-rpc # signal-cli-rest-api-jre: # image: bbernhard/signal-cli-rest-api:latest-jre # environment: # - MODE=normal # ports: # - "8080:8080" # volumes: # - "./signal-cli-config:/home/.local/share/signal-cli" # Native-only variant -- lightest, use with MODE=native or MODE=json-rpc-native # signal-cli-rest-api-native: # image: bbernhard/signal-cli-rest-api:latest-native # environment: # - MODE=native # ports: # - "8080:8080" # volumes: # - "./signal-cli-config:/home/.local/share/signal-cli"