forked from vancehuds/VanceFeedback
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.separated.yml
More file actions
61 lines (54 loc) · 1.56 KB
/
docker-compose.separated.yml
File metadata and controls
61 lines (54 loc) · 1.56 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: vancefeedback-backend
ports:
- "3030:3030"
environment:
# Backend Port
- PORT=3030
# Database Configuration
# Uncomment and configure based on your database type
# For SQLite (default), no configuration needed - will use server/data/feedback.db
# For MySQL:
# - DB_TYPE=mysql
# - DB_HOST=host.docker.internal # Use 'host.docker.internal' to access host MySQL on Windows/Mac
# - DB_PORT=3306
# - DB_USER=your_db_user
# - DB_PASS=your_db_password
# - DB_NAME=vancefeedback
# Auto-Installer Configuration (Only runs on fresh start)
- ADMIN_USER=${ADMIN_USER:-admin}
- ADMIN_PASS=${ADMIN_PASS:-admin123}
# Security
- JWT_SECRET=${JWT_SECRET}
# AI Configuration
- GEMINI_API_KEY=${GEMINI_API_KEY}
- BIGMODEL_API_KEY=${BIGMODEL_API_KEY}
- AI_PROVIDER=${AI_PROVIDER}
volumes:
# Persist SQLite data (if using SQLite)
- ./server/data:/app/server/data
# Persist Configuration (db_config.json)
- ./server/config:/app/server/config
restart: unless-stopped
networks:
- vancefeedback-network
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: vancefeedback-frontend
ports:
- "3020:3020"
depends_on:
- backend
restart: unless-stopped
networks:
- vancefeedback-network
networks:
vancefeedback-network:
driver: bridge