45 lines
No EOL
1.1 KiB
YAML
45 lines
No EOL
1.1 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
|
|
|
|
rabbitmq:
|
|
image: rabbitmq:latest
|
|
restart: unless-stopped
|
|
|
|
receiver:
|
|
build: "./receiver/."
|
|
depends_on:
|
|
- rabbitmq
|
|
- signal-api
|
|
environment:
|
|
RABBITMQ_HOST: rabbitmq
|
|
restart: on-failure
|
|
volumes:
|
|
- "./registrations.json:/usr/src/app/registrations.json"
|
|
|
|
sender:
|
|
build: "./sender/."
|
|
depends_on:
|
|
- rabbitmq
|
|
- signal-api
|
|
environment:
|
|
RABBITMQ_HOST: rabbitmq
|
|
restart: on-failure
|
|
volumes:
|
|
- "./registrations.json:/usr/src/app/registrations.json"
|
|
|
|
worker:
|
|
build: "./worker/."
|
|
depends_on:
|
|
- rabbitmq
|
|
- signal-api
|
|
- sender
|
|
- receiver
|
|
environment:
|
|
RABBITMQ_HOST: rabbitmq
|
|
restart: on-failure |