-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 906 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (28 loc) · 906 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
version: '3.8'
services:
skyimage:
image: fishcpy/skyimage:latest
container_name: skyimage
restart: unless-stopped
ports:
- "8080:8080"
environment:
- HTTP_ADDR=:8080
- STORAGE_PATH=storage/uploads
- PUBLIC_BASE_URL=http://localhost:8080
- ALLOW_REGISTRATION=true
- FRONTEND_DIST=dist
- TZ=Asia/Shanghai
# CORS 配置(生产环境请修改为实际域名)
- CORS_ALLOWED_ORIGINS=http://localhost:8080
volumes:
- ./storage/data:/app/storage/data
- ./storage/uploads:/app/storage/uploads
# 重要:.env 文件持久化,保存安装后的数据库配置
- ./.env:/app/.env
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s