-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.32 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
version: '3.8'
services:
# Tingly Box Server
tingly-box:
build:
context: .
dockerfile: Dockerfile
container_name: tingly-box
ports:
- "8080:8080"
volumes:
# Mount configuration directory
- ./data/.tingly-box:/app/.tingly-box
# Mount logs directory
- ./data/logs:/app/logs
# Mount memory directory
- ./data/memory:/app/memory
environment:
- TINGLY_PORT=8080
- TINGLY_HOST=0.0.0.0
- TINGLY_DEBUG=false
restart: unless-stopped
healthcheck:
test: ["CMD", "tingly", "status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Development mode - mount source and rebuild manually
tingly-box-dev:
build:
context: .
dockerfile: Dockerfile
container_name: tingly-box-dev
ports:
- "8080:8080"
volumes:
# Mount source code for development
- .:/app
# Mount node_modules to avoid container rebuilding it
- /app/frontend/node_modules
# Mount configuration directory
- ./data/.tingly-box:/app/.tingly-box
# Mount logs directory
- ./data/logs:/app/logs
# Mount memory directory
- ./data/memory:/app/memory
environment:
- TINGLY_PORT=8080
- TINGLY_HOST=0.0.0.0
- TINGLY_DEBUG=true
profiles:
- dev