代码拉取完成,页面将自动刷新
同步操作将从 若依/RuoYi-Vue 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
name: "ruoyi"
services:
frontend:
image: ruoyi-ui
build:
context: ./ruoyi-ui
dockerfile: ../frontend.Dockerfile
ports:
- 80:80
#volumes:
#- ./ruoyi-ui/nginx-sample.conf:/etc/nginx/conf.d/default.conf
networks:
- net-1
healthcheck:
test: [ "CMD", "curl","-f","http://localhost:80" ]
interval: 10s
timeout: 5s
retries: 3
depends_on:
backend:
condition: service_healthy
backend:
image: ruoyi-admin
build:
dockerfile: backend.Dockerfile
command: [
"--ruoyi.profile=/home/ruoyi/uploadPath",
"--spring.datasource.druid.master.url=jdbc:mysql://mysql:3306/ry-vue?useUnicode=true&characterEncoding=utf8",
"--spring.datasource.druid.master.username=root",
"--spring.datasource.druid.master.password=123456",
"--spring.redis.host=redis"
]
ports:
- 8080:8080
volumes:
- data-upload:/home/ruoyi/uploadPath
- ~/.m2:/root/.m2
networks:
- net-1
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080" ]
interval: 20s
timeout: 5s
retries: 3
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=ry-vue
ports:
- 3306:3306
command: [
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_general_ci",
"--skip-character-set-client-handshake"
]
volumes:
- ./sql:/docker-entrypoint-initdb.d
- data-mysql:/var/lib/mysql
networks:
- net-1
healthcheck:
#test: [ "CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p123456' ]
test: [ "CMD-SHELL", 'mysqladmin ping -h localhost -u root -p$$MYSQL_ROOT_PASSWORD || exit 1' ]
interval: 10s
timeout: 5s
retries: 3
depends_on:
redis:
condition: service_healthy
redis:
image: redis:7.0
ports:
- 6379:6379
volumes:
- data-redis:/data
networks:
- net-1
healthcheck:
test: [ "CMD", 'redis-cli',"ping" ]
interval: 10s
timeout: 5s
retries: 3
volumes:
data-mysql:
data-redis:
data-upload:
networks:
net-1:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。