-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (34 loc) · 992 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (34 loc) · 992 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
services:
qtine:
build: .
container_name: qtine
init: true
ports:
- "4990:4990"
volumes:
- ./config.yml:/app/config.yml
- ./data:/app/data
- ./plugins:/app/plugins
- ./adapters:/app/adapters
environment:
QTINE_ADMIN_TOKEN: ${QTINE_ADMIN_TOKEN:?set QTINE_ADMIN_TOKEN in .env}
QTINE_SESSION_SECRET: ${QTINE_SESSION_SECRET:?set QTINE_SESSION_SECRET in .env}
QTINE_ONEBOT_ACCESS_TOKEN: ${QTINE_ONEBOT_ACCESS_TOKEN:?set QTINE_ONEBOT_ACCESS_TOKEN in .env}
restart: unless-stopped
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
tmpfs:
- /tmp:size=64m,mode=1777
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:4990/health', timeout=3)"]
interval: 30s
timeout: 5s
start_period: 20s
retries: 3
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"