-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (39 loc) · 863 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (39 loc) · 863 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
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.9"
services:
teleops-ai:
build:
context: .
dockerfile: Dockerfile
container_name: teleops-ai
restart: unless-stopped
env_file:
- .env
volumes:
- ./data:/app/data
- ./data/logs:/app/data/logs
- ./data/uploads:/app/data/uploads
- ./data/cache:/app/data/cache
- ./data/backups:/app/data/backups
deploy:
resources:
limits:
memory: 512M
environment:
TZ: Asia/Bangkok
PYTHONUNBUFFERED: "1"
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import sqlite3; sqlite3.connect('/app/data/teleops.db').execute('SELECT 1')"
]
interval: 30s
timeout: 10s
retries: 3
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"