-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
32 lines (28 loc) · 1006 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
x-defaults: &x-defaults
environment:
BINDING: 0.0.0.0
PORT: 3000
POSTGRES_HOST: "${POSTGRES_HOST:-db}"
POSTGRES_PORT: "${POSTGRES_PORT:-5432}"
SIGNAL_CLI_REST_API_ENDPOINT: "http://signal:8080"
SIGNAL_CLI_REST_API_ATTACHMENT_PATH: "signal-cli-config/attachments/"
THREE_SIXTY_DIALOG_PARTNER_REST_API_ENDPOINT: "https://hub.360dialog.io/api/v2"
THREE_SIXTY_DIALOG_WHATS_APP_REST_API_ENDPOINT: "https://waba-v2.360dialog.io"
services:
app:
<<: *x-defaults
command: bundle exec rails server
depends_on: [ job-worker ]
job-worker:
<<: *x-defaults
command: bundle exec rails jobs:work
depends_on: [ signal ]
signal:
image: bbernhard/signal-cli-rest-api:0.89
environment:
- MODE=native
#- 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