Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (64 loc) · 1.84 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (64 loc) · 1.84 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
56
57
58
59
60
61
62
63
64
65
services:
piclite:
image: ghcr.io/amiaoapp/piclite:${PICLITE_TAG:-latest}
container_name: piclite
restart: unless-stopped
environment:
NODE_ENV: production
HOST: 0.0.0.0
PORT: 3456
ports:
- "${PICLITE_BIND:-0.0.0.0}:${PICLITE_PORT:-3456}:3456"
healthcheck:
test:
- CMD
- node
- -e
- fetch('http://127.0.0.1:3456/').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
piclite-mcp:
image: ghcr.io/amiaoapp/piclite-mcp:${PICLITE_MCP_TAG:-latest}
container_name: piclite-mcp
profiles: [mcp]
restart: unless-stopped
user: "${PICLITE_MCP_UID:-10001}:${PICLITE_MCP_GID:-10001}"
init: true
read_only: true
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
tmpfs:
- /tmp:mode=1777,size=64m
mem_limit: ${PICLITE_MCP_MEMORY:-1g}
environment:
PICLITE_MCP_HOST: 0.0.0.0
PICLITE_MCP_PORT: 3210
PICLITE_MCP_WORKSPACE: /workspace
PICLITE_MCP_TOKEN: ${PICLITE_MCP_TOKEN:-}
RAYON_NUM_THREADS: ${PICLITE_MCP_THREADS:-2}
ports:
- "${PICLITE_MCP_BIND:-127.0.0.1}:${PICLITE_MCP_PORT:-3210}:3210"
volumes:
- type: bind
source: ${PICLITE_MCP_WORKSPACE:-./piclite-mcp-data}/input
target: /workspace/input
read_only: true
bind:
create_host_path: false
- type: bind
source: ${PICLITE_MCP_WORKSPACE:-./piclite-mcp-data}/output
target: /workspace/output
bind:
create_host_path: false
healthcheck:
test:
- CMD
- node
- -e
- fetch('http://127.0.0.1:3210/healthz').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))
interval: 30s
timeout: 5s
start_period: 15s
retries: 3