Skip to content

Commit 937ef80

Browse files
committed
feat: Add docker-compose.yml for service orchestration
1 parent 52fdbdf commit 937ef80

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docker-compose.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: '3.8'
2+
3+
services:
4+
astrbot-cloud:
5+
image: soulter/astrbot-cloud:latest
6+
container_name: astrbot-cloud
7+
ports:
8+
- "8989:8000"
9+
environment:
10+
- PYTHONUNBUFFERED=1
11+
restart: always
12+
healthcheck:
13+
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/health')"]
14+
interval: 30s
15+
timeout: 3s
16+
retries: 3
17+
start_period: 5s
18+
networks:
19+
- astrbot-network
20+
logging:
21+
driver: "json-file"
22+
options:
23+
max-size: "10m"
24+
max-file: "3"
25+
26+
networks:
27+
astrbot-network:
28+
driver: bridge

0 commit comments

Comments
 (0)