Compare commits

...

2 Commits

Author SHA1 Message Date
Bernhard B.
c1d889d6d3
Merge pull request #846 from poggenpower/patch-1
Update docker-compose for root-less
2026-05-10 22:58:54 +02:00
Thomas Laubrock
79b2f60cf1
Update docker-compose for root-less
from test and conversation in closed PR #798
2026-05-08 00:03:35 +02:00

View File

@ -1,11 +1,16 @@
services:
signal-cli-rest-api:
image: bbernhard/signal-cli-rest-api:latest
user: "1000:1000" # change to UID:GID you preferre
image: bbernhard/signal-cli-rest-api:rootless-latest
environment:
- MODE=normal #supported modes: json-rpc, native, normal
#- 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
- "./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. Make sure that the user has permissions to read and write here.
security_opt:
- no-new-privileges:true # additonal security control
tmpfs:
- /run:exec,size=64m,uid=1000,gid=1000,mode=0755 # Make sure this UID:GID fits those from above