mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-07-29 01:09:22 +00:00
Add build configuration and use it in docker compose.
This commit is contained in:
parent
d8193872a9
commit
b8cf7bf684
2
.env
Normal file
2
.env
Normal file
@ -0,0 +1,2 @@
|
||||
BUILD_TARGET=jre # native, jre
|
||||
RUN_MODE=normal # native, normal
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,4 +2,4 @@ signal-cli-config
|
||||
src/main
|
||||
src/signal-cli-rest-api
|
||||
.idea/
|
||||
./persistence
|
||||
.persistence
|
||||
|
||||
@ -1,9 +1,13 @@
|
||||
services:
|
||||
# JRE variant (default) -- use with MODE=normal or MODE=json-rpc
|
||||
signal-cli-rest-api:
|
||||
image: bbernhard/signal-cli-rest-api:latest
|
||||
# image: bbernhard/signal-cli-rest-api:latest
|
||||
build:
|
||||
context: "."
|
||||
dockerfile: Dockerfile
|
||||
target: ${BUILD_TARGET}
|
||||
environment:
|
||||
- MODE=normal #supported modes: normal, json-rpc
|
||||
- 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.
|
||||
@ -19,4 +23,4 @@ services:
|
||||
# ports:
|
||||
# - "8080:8080"
|
||||
# volumes:
|
||||
# - "./signal-cli-config:/home/.local/share/signal-cli"
|
||||
# - "./signal-cli-config:/home/.local/share/signal-cli"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user