代码拉取完成,页面将自动刷新
同步操作将从 GreaterWMS/GreaterWMS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '3.9'
networks:
basic:
services:
front:
# build:
# context: ./
# dockerfile: ./docker/front/Dockerfile
container_name: greaterwms_front
image: greaterwms/greatermws_front:latest
restart: always
ports:
- '8080:8080'
volumes:
- ./templates:/GreaterWMS/templates:rw
- ./web_start.sh:/GreaterWMS/templates/webstart.sh
command:
- /bin/bash
- -c
#- "yarn install --force"
- |
bash /GreaterWMS/templates/webstart.sh
networks:
- basic
backend:
# build:
# context: ./
# dockerfile: ./docker/backend/Dockerfile
container_name: greaterwms_backend
image: greaterwms/greaterwms_backend:latest
restart: always
volumes:
- ./:/GreaterWMS/:rw #将前目录挂载到容器下
- ./supervisord.conf:/etc/supervisor/supervisord.conf
ports:
- '8008:8008'
command:
- /bin/bash
- -c
- |
bash backend_start.sh && /etc/init.d/supervisor start
networks:
- basic
# greaterwms-mysql:
# image: mysql:5.7
# container_name: greaterwms-mysql
# #使用该参数,container内的root拥有真正的root权限,否则,container内的root只是外部的一个普通用户权限
# #设置为true,不然数据卷可能挂载不了,启动不起
# privileged: true
# restart: always
# ports:
# - "3306:3306"
# environment:
# MYSQL_ROOT_PASSWORD: "GreaterWMS20210816"
# MYSQL_DATABASE: "greaterwms"
# TZ: Asia/Shanghai
# command:
# --wait_timeout=31536000
# --interactive_timeout=31536000
# --max_connections=1000
# volumes:
# #映射mysql的数据目录到宿主机,保存数据
# - "./docker/mysql/data:/var/lib/mysql"
# #根据宿主机下的配置文件创建容器
# - "./docker/mysql/conf.d:/etc/mysql/conf.d"
# - "./docker/mysql/logs:/logs"
# networks:
# - basic
# nginx:
# image: nginx:1.19.1
# container_name: greaterwms_nginx
# restart: always
# privileged: true
# environment:
# - TZ=Asia/Shanghai
# ports:
# - 80:80
# #- 443:443
# volumes:
# - /etc/localtime:/etc/localtime:ro
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# - ./static_new/:/GreaterWMS/static_new:ro
# networks:
# - basic
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。