-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (28 loc) · 806 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (28 loc) · 806 Bytes
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
name: watel
services:
watel:
build: .
image: watel
container_name: watel
restart: unless-stopped
# Credentials come from the same .env file a local run would use.
env_file: .env
# Listed after env_file so these always win: .env.example ships relative
# paths, which would put the databases somewhere other than the volume.
environment:
BRIDGE_DB: /data/bridge.db
SESSION_DB: /data/whatsapp.db
TZ: ${TZ:-Asia/Jakarta}
volumes:
- watel-data:/data
# Pairing prints a QR code, which needs a terminal attached.
stdin_open: true
tty: true
# A bridge runs for months; keep its logs from filling the disk.
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"
volumes:
watel-data: