forked from code-chat-br/whatsapp-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (53 loc) · 1.62 KB
/
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
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
57
58
59
60
61
62
63
64
65
66
67
version: '3.8'
networks:
public-network:
driver: bridge
services:
api:
container_name: codechat_api
image: codechat/api:develop
restart: unless-stopped
ports:
- 8084:8084
volumes:
- instances_connecteds:/codechat/instances
environment:
- SERVER_PORT=8084
- SESSION_SECRET=W0NvZGVDaGF0XTpbU2Vzc
- LOG_LEVEL=ERROR|WARN|INFO|DEBUG|LOG|VERBOSE|DARK
- LOG_COLOR=true
- DATABASE_ENABLED=true
- DATABASE_URL=postgres://[USER]:[PASS]@[HOST]:[PORT]/[DATABASE_NAME]?schema=public
- DATABASE_SYNC_MESSAGES=true
- DATABASE_SAVE_DATA_NEW_MESSAGE=true
- DATABASE_SAVE_MESSAGE_UPDATE=true
- DATABASE_SAVE_DATA_CONTACTS=true
- DATABASE_SAVE_DATA_CHATS=true
- GLOBAL_WEBHOOK_URL=url
- GLOBAL_WEBHOOK_ENABLED=false
- INSTANCE_EXPIRATION_TIME=false
- CONFIG_SESSION_PHONE_CLIENT=CodeChat_V1
- CONFIG_SESSION_PHONE_NAME=Edge
- QRCODE_LIMIT=10
- QRCODE_EXPIRATION_TIME=60
- CONNECTION_TIMEOUT=300
- AUTHENTICATION_GLOBAL_AUTH_TOKEN=zYzP7ocstxh3SJ23D4FZTCu4ehnM8v4hu
- AUTHENTICATION_JWT_EXPIRES_IN=0
- AUTHENTICATION_JWT_SECRET=3RFYiiRmvNiokSBrLZzx
- PROVIDER_ENABLED=true
- PROVIDER_HOST=127.0.0.1
- PROVIDER_PORT=5656
- PROVIDER_PREFIX=codechat
- BASE_URL=
# - S3_ENABLED=false
# - S3_ACCESS_KEY=[ACCESS_KEY]
# - S3_SECRET_KEY=[SECRET_KEY]
# - S3_BUCKET=[BUCKET]
# - S3_PORT=9000
# - S3_ENDPOINT=[ENDPOINT]
# - S3_USE_SSL=false
networks:
- public-network
volumes:
instances_connecteds:
driver: local