forked from gommzystudio/device-activity-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.2 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
services:
backend:
build:
context: .
dockerfile: Dockerfile
args:
- PORT=${BACKEND_PORT:-3001}
extra_hosts:
- "localhost:host-gateway"
ports:
- "${BACKEND_PORT:-3001}:${BACKEND_PORT:-3001}"
environment:
- PORT=${BACKEND_PORT:-3001}
- SIGNAL_API_URL=${SIGNAL_API_URL:-http://localhost:8080}
- NODE_ENV=${NODE_ENV:-production}
volumes:
# Persist WhatsApp auth state
- baileys_auth:/app/baileys_auth_info
networks:
- app-network
restart: unless-stopped
client:
build:
context: ./client
dockerfile: Dockerfile
args:
- PORT=${CLIENT_PORT:-3000}
- REACT_APP_API_URL=${BACKEND_URL:-http://localhost:3001}
ports:
- "${CLIENT_PORT:-3000}:${CLIENT_PORT:-3000}"
environment:
- PORT=${CLIENT_PORT:-3000}
depends_on:
- backend
networks:
- app-network
restart: unless-stopped
signal-api:
image: bbernhard/signal-cli-rest-api
ports:
- "8080:8080"
environment:
- MODE=json-rpc
restart: unless-stopped
networks:
- app-network
volumes:
baileys_auth:
driver: local
networks:
app-network:
driver: bridge