1 Star 0 Fork 0

Fox He/springboot-security-jwt-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Vagrantfile 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
xieshaohu 提交于 2023-09-05 15:07 +08:00 . 增加Vagrant,还未调试通过
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
# Required for the Disks feature
Vagrant.require_version ">= 2.3.7"
# 设置国内镜像
# vagrant box add ubuntu/jammy64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/jammy/current/jammy-server-cloudimg-amd64-vagrant.box
#BOX_URL = "https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/jammy/current/jammy-server-cloudimg-amd64-vagrant.box"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#config.vm.box_url = BOX_URL
# only virtualbox
#config.vm.box = "ubuntu/jammy64"
# 为 database 定义局部配置,变量为 db
config.vm.define "redis" do |v|
v.vm.provider "docker" do |d|
d.image = "redis"
d.volumes = ["/tmp/redis:/data"]
d.ports = ["6379:6379"]
end
end
# 为 database 定义局部配置,变量为 db
config.vm.define "database" do |v|
v.vm.provider "docker" do |d|
d.image = "mysql"
d.volumes = ["/tmp/mysql:/data"]
d.ports = ["3306:3306"]
d.env = {
MYSQL_DATABASE: "example",
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
}
end
end
config.vm.define "web" do |v|
v.vm.provider "docker" do |d|
d.build_dir = "."
#d.remains_running = true
d.has_ssh = true
end
end
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fox_he/springboot-security-jwt-example.git
git@gitee.com:fox_he/springboot-security-jwt-example.git
fox_he
springboot-security-jwt-example
springboot-security-jwt-example
springboot3-security-jwt

搜索帮助

371d5123 14472233 46e8bd33 14472233