Files
sub2apipay/docker-compose.app.yml
erio c226b1188d feat: 版本管理 — VERSION 文件 + 构建发布脚本
- VERSION 文件:版本号单一来源(当前 1.0.0)
- docker-compose.hub.yml / app.yml:镜像 tag 改为 \${IMAGE_TAG:-latest}
- scripts/publish.sh:自动读取 VERSION、打双标签(x.y.z + latest)、推送到 Docker Hub
2026-03-01 21:05:51 +08:00

16 lines
565 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# docker-compose.app.yml
# 使用 Docker Hub 镜像部署(仅应用,外部数据库)
# 适合:已有 PostgreSQL 实例,将 DATABASE_URL 填入 .env
#
# 启动IMAGE_TAG=1.0.0 docker compose -f docker-compose.app.yml up -d
# 更新IMAGE_TAG=1.1.0 docker compose -f docker-compose.app.yml pull && docker compose -f docker-compose.app.yml up -d
# 不指定 IMAGE_TAG 时默认使用 latest
services:
app:
image: touwaeriol/sub2apipay:${IMAGE_TAG:-latest}
ports:
- '${APP_PORT:-3001}:3000'
env_file: .env
restart: unless-stopped