-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 875 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 875 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
30
31
32
33
34
35
36
37
version: '3.8'
services:
metro-card-bot:
image: ghcr.io/shinku1014/metro-card-bot:${IMAGE_TAG:-latest}
platform: linux/arm64
container_name: metro-card-bot
restart: unless-stopped
env_file:
- .env
environment:
- DATA_FILE=/app/data/cards.json
- NODE_ENV=production
- TZ=Asia/Shanghai
- LANG=zh_CN.UTF-8
- LC_TIME=zh_CN.UTF-8
volumes:
# 持久化数据目录
- ./data:/app/data
# 如果需要挂载配置文件
# - ./.env:/app/.env:ro
# 如果需要网络端口
# ports:
# - "3000:3000"
# 健康检查(可选)
healthcheck:
test: [ "CMD", "node", "-e", "process.exit(0)" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# 可选:如果需要网络配置
# networks:
# default:
# name: metro-bot-network