58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
version: "3"
|
|
services:
|
|
|
|
# signal-api:
|
|
# build: "./signal-cli-rest-api/."
|
|
# volumes:
|
|
# - "./signal-cli-rest-api/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
|
|
# restart: unless-stopped
|
|
|
|
|
|
signald:
|
|
image: finn/signald:latest
|
|
volumes:
|
|
- './signald/gradle:/home/gradle'
|
|
- './signald/run:/var/run/signald'
|
|
restart: unless-stopped
|
|
|
|
rabbitmq:
|
|
image: rabbitmq:latest
|
|
restart: unless-stopped
|
|
|
|
receiver:
|
|
build: "./receiver/."
|
|
depends_on:
|
|
- rabbitmq
|
|
- signald
|
|
environment:
|
|
RABBITMQ_HOST: rabbitmq
|
|
SOCKET_PATH: ./run/signald.sock
|
|
restart: on-failure
|
|
volumes:
|
|
- "./registrations.json:/usr/src/app/registrations.json"
|
|
- "./signald/run:/usr/src/app/run"
|
|
- "./libs/pysignald:/usr/src/app/pysignald"
|
|
|
|
sender:
|
|
build: "./sender/."
|
|
depends_on:
|
|
- rabbitmq
|
|
- signald
|
|
environment:
|
|
RABBITMQ_HOST: rabbitmq
|
|
SOCKET_PATH: ./run/signald.sock
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./registrations.json:/usr/src/app/registrations.json"
|
|
- "./signald/run:/usr/src/app/run"
|
|
- "./libs/pysignald:/usr/src/app/pysignald"
|
|
|
|
worker:
|
|
build: "./worker/."
|
|
depends_on:
|
|
- rabbitmq
|
|
- sender
|
|
- receiver
|
|
environment:
|
|
RABBITMQ_HOST: rabbitmq
|
|
restart: unless-stopped
|