1 Star 0 Fork 1K

james/GreaterWMS

forked from GreaterWMS/GreaterWMS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
cow11023 提交于 2022-07-05 23:47 . Update docker-compose.yml
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/jamesyhl/GreaterWMS.git
git@gitee.com:jamesyhl/GreaterWMS.git
jamesyhl
GreaterWMS
GreaterWMS
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385