更新dockerfile

This commit is contained in:
2026-03-21 22:05:24 +08:00
parent ae42988ed5
commit 78c3644b2c
3 changed files with 80 additions and 12 deletions

21
docker-compose.yml Normal file
View File

@@ -0,0 +1,21 @@
services:
loongyan:
build:
context: .
dockerfile: Dockerfile
image: loongyan:latest
container_name: loongyan
ports:
- "8080:8080"
volumes:
- ./data:/app/data
- ./cache:/app/cache
environment:
- PORT=8080
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s