mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-09-01 06:38:12 +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/main
|
||||||
src/signal-cli-rest-api
|
src/signal-cli-rest-api
|
||||||
.idea/
|
.idea/
|
||||||
./persistence
|
.persistence
|
||||||
|
|||||||
@ -1,9 +1,13 @@
|
|||||||
services:
|
services:
|
||||||
# JRE variant (default) -- use with MODE=normal or MODE=json-rpc
|
# JRE variant (default) -- use with MODE=normal or MODE=json-rpc
|
||||||
signal-cli-rest-api:
|
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:
|
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)
|
#- AUTO_RECEIVE_SCHEDULE=0 22 * * * #enable this parameter on demand (see description below)
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080" #map docker port 8080 to host port 8080.
|
- "8080:8080" #map docker port 8080 to host port 8080.
|
||||||
@ -19,4 +23,4 @@ services:
|
|||||||
# ports:
|
# ports:
|
||||||
# - "8080:8080"
|
# - "8080:8080"
|
||||||
# volumes:
|
# 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