Skip to content

Commit d86a186

Browse files
authored
Merge pull request #2 from VanceHud/main
添加官方docker镜像
2 parents 0564a9a + 2aaf199 commit d86a186

File tree

5 files changed

+69
-30
lines changed

5 files changed

+69
-30
lines changed

.github/workflows/docker-image.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,27 @@ on:
55
branches: [ "main" ]
66
pull_request:
77
branches: [ "main" ]
8+
workflow_dispatch:
89

910
jobs:
10-
1111
build:
12-
1312
runs-on: ubuntu-latest
14-
1513
steps:
16-
- uses: actions/checkout@v4
17-
- name: Build the Docker image
18-
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Login to Docker Hub
20+
if: github.event_name != 'pull_request'
21+
uses: docker/login-action@v3
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
26+
- name: Build and push
27+
uses: docker/build-push-action@v5
28+
with:
29+
context: .
30+
push: ${{ github.event_name != 'pull_request' }}
31+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/vancefeedback:latest,${{ secrets.DOCKERHUB_USERNAME }}/vancefeedback:${{ github.sha }}

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# VanceFeedback
22

33
[![GitHub](https://img.shields.io/badge/GitHub-vancehuds%2FVanceFeedback-blue?logo=github)](https://github.com/vancehuds/VanceFeedback)
4+
[![Docker](https://img.shields.io/badge/Docker-vancehud%2Fvancefeedback-blue?logo=docker&logoColor=white)](https://hub.docker.com/r/vancehud/vancefeedback)
45
[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
56

67
VanceFeedback 是一个现代化的智能反馈和工单管理系统。它采用客户端-服务器架构,前端基于 React,后端基于 Express,集成了 **Google Gemini AI****ZhiPu BigModel** 驱动的自动化功能,旨在提升用户反馈收集、跟踪和管理的效率。
@@ -93,7 +94,12 @@ VanceFeedback 是一个现代化的智能反馈和工单管理系统。它采用
9394
VanceFeedback 提供了灵活的部署方案,适配多种生产环境。
9495

9596
### 1. Docker 部署(推荐)
96-
支持一键启动完整环境:
97+
你可以直接使用 Docker Hub 上的官方镜像:
98+
```bash
99+
docker run -d -p 3000:3000 --name vancefeedback vancehud/vancefeedback:latest
100+
```
101+
102+
或者使用源码编译启动完整环境:
97103
```bash
98104
docker-compose -f docker-compose.separated.yml up -d --build
99105
```

README_EN.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# VanceFeedback
22

33
[![GitHub](https://img.shields.io/badge/GitHub-vancehuds%2FVanceFeedback-blue?logo=github)](https://github.com/vancehuds/VanceFeedback)
4+
[![Docker](https://img.shields.io/badge/Docker-vancehud%2Fvancefeedback-blue?logo=docker&logoColor=white)](https://hub.docker.com/r/vancehud/vancefeedback)
45
[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
56

67
VanceFeedback is a modern, intelligent feedback and ticket management system. Built with a client-server architecture using React for the frontend and Express for the backend, it integrates **Google Gemini AI** or **ZhiPu BigModel** powered automation to enhance the efficiency of user feedback collection, tracking, and management.
@@ -93,7 +94,12 @@ VanceFeedback is a modern, intelligent feedback and ticket management system. Bu
9394
VanceFeedback supports flexible deployment options suitable for various production environments.
9495

9596
### 1. Docker Deployment (Recommended)
96-
Launch the full environment with a single command:
97+
You can directly use the official image from Docker Hub:
98+
```bash
99+
docker run -d -p 3000:3000 --name vancefeedback vancehud/vancefeedback:latest
100+
```
101+
102+
Or launch the full environment from source:
97103
```bash
98104
docker-compose -f docker-compose.separated.yml up -d --build
99105
```

docker-compose.separated.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ services:
2424
# - DB_NAME=vancefeedback
2525

2626
# Auto-Installer Configuration (Only runs on fresh start)
27-
# - ADMIN_USER=admin
28-
# - ADMIN_PASS=your_secure_password
27+
- ADMIN_USER=${ADMIN_USER:-admin}
28+
- ADMIN_PASS=${ADMIN_PASS:-admin123}
29+
30+
# Security
31+
- JWT_SECRET=${JWT_SECRET}
32+
33+
# AI Configuration
34+
- GEMINI_API_KEY=${GEMINI_API_KEY}
35+
- BIGMODEL_API_KEY=${BIGMODEL_API_KEY}
36+
- AI_PROVIDER=${AI_PROVIDER}
2937
volumes:
3038
# Persist SQLite data (if using SQLite)
3139
- ./server/data:/app/server/data

docker-compose.yml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,39 @@
11
version: '3.8'
22

33
services:
4-
app:
4+
vance-feedback:
55
build: .
66
ports:
7-
- "3000:3000"
7+
- "${PORT:-3000}:3000"
88
restart: always
9-
# Uncomment and set these variables to auto-configure the system.
10-
# If left commented, the system will start in "Setup Mode", accessible via the web UI.
11-
# environment:
12-
# Database Configuration (External MySQL example)
13-
# - DB_TYPE=mysql
14-
# - DB_HOST=host.docker.internal # Use 'host.docker.internal' to access host MySQL on Windows/Mac
15-
# - DB_PORT=3306
16-
# - DB_USER=your_db_user
17-
# - DB_PASS=your_db_password
18-
# - DB_NAME=qli_feedback
9+
environment:
10+
# Application Configuration
11+
- PORT=3000
12+
- JWT_SECRET=${JWT_SECRET}
13+
14+
# Database Configuration
15+
# Default: SQLite (no extra config needed, uses /app/server/data/feedback.db)
16+
17+
# Optional: MySQL Configuration (Uncomment to use)
18+
# - DB_TYPE=mysql
19+
# - DB_HOST=host.docker.internal
20+
# - DB_PORT=3306
21+
# - DB_USER=root
22+
# - DB_PASS=password
23+
# - DB_NAME=vancefeedback
24+
25+
# Auto-Installer Configuration (Runs on first start if DB is empty)
26+
- ADMIN_USER=${ADMIN_USER:-admin}
27+
- ADMIN_PASS=${ADMIN_PASS:-admin123}
1928

20-
# Auto-Installer Configuration (Only runs on fresh start if DB vars are set)
21-
# - ADMIN_USER=admin
22-
# - ADMIN_PASS=your_secure_password
2329
volumes:
24-
# Persist SQLite data if using SQLite
30+
# Persist SQLite data
2531
- ./server/data:/app/server/data
26-
# Persist Configuration (db_config.json)
32+
# Persist Configuration
2733
- ./server/config:/app/server/config
2834
networks:
29-
- 1panel-network
35+
- vance-network
3036

3137
networks:
32-
1panel-network:
33-
external: true
38+
vance-network:
39+
driver: bridge

0 commit comments

Comments
 (0)