-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.06 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
version: '3.8'
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
args:
VERSION: ${VERSION:-dev}
COMMIT: ${COMMIT:-unknown}
BUILD_TIME: ${BUILD_TIME:-unknown}
container_name: filecodebox
ports:
- "12345:12345"
volumes:
- ./data:/app/data
- ./config:/app/config
- ./themes:/app/themes
environment:
- TZ=Asia/Shanghai
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:12345/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# 资源限制(可选)
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
# 网络配置(如果需要自定义网络)
# networks:
# - filecodebox-network
# 自定义网络(可选)
# networks:
# filecodebox-network:
# driver: bridge