- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
Latest commit
26 lines (24 loc) · 815 Bytes
/
Copy pathenv.example
File metadata and controls
26 lines (24 loc) · 815 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
# ==========================================
# Docker Compose 环境变量配置
# ==========================================
# 说明:此文件中的变量会被docker-compose.yml使用
# 使用方法:cp env.example .env 然后根据需要修改
# ==========================================
# 数据库配置(MySQL容器)
MYSQL_ROOT_PASSWORD=root
MYSQL_DATABASE=security_teaching_system
MYSQL_USER=security_user
MYSQL_PASSWORD=security_pass
MYSQL_PORT=3306
# 应用配置(Spring Boot容器)
SPRING_PROFILES_ACTIVE=docker
MYSQL_HOST=mysql
MYSQL_PORT=3306
MYSQL_DATABASE=security_teaching_system
MYSQL_USER=security_user
MYSQL_PASSWORD=security_pass
JWT_SECRET=change-me-in-production-please-use-a-secure-random-string
JAVA_OPTS=-Xms512m -Xmx1024m
SERVER_PORT=8080
APP_PORT=8080
CORS_ALLOWED_ORIGINS=*