modify the docker files and README.md

pull/59/head
hyh123a 2021-08-06 16:08:51 +08:00
parent 35d9ea4a02
commit 3828f1f73b
7 changed files with 27 additions and 19534 deletions

View File

@ -67,6 +67,17 @@ Dieses Projekt besteht aus folgenden Komponenten:
[Installieren web UI](./web/README.md)
### Docker Docker-compose Installieren
```
git clone https://gitee.com/myems/myems.git
# for generate the static direction: 'build'
cd myems/web
npm run build
cd myems
docker-compose up -d
```
## Editionen vergleichen

View File

@ -68,6 +68,17 @@ This project is compose of following components:
[Install web UI](./web/README.md)
### Docker Docker-compose Installation
```
git clone https://gitee.com/myems/myems.git
# for generate the static direction: 'build'
cd myems/web
npm run build
cd myems
docker-compose up -d
```
## Compare Editions
| Features | Community Edition | Enterprise Edition | Explanation |

2
admin/Dockerfile vendored
View File

@ -8,5 +8,5 @@ RUN rm /etc/nginx/conf.d/default.conf && \
# copy the config and web codes
COPY nginx.conf /etc/nginx/
COPY . /usr/share/nginx/admin
EXPOSE 8001
EXPOSE 80
CMD ['nginx', '-c /etc/nginx/nginx.conf', '-g "daemon off;"']

2
admin/nginx.conf vendored
View File

@ -26,7 +26,7 @@ http {
keepalive_timeout 65;
server {
listen 8001;
listen 80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;

View File

@ -34,7 +34,7 @@ services:
test: [ "CMD","nginx","-t" ]
restart: always
ports:
- "8001:8001"
- "8001:80"
web:
build: ./web
command: nginx -c /etc/nginx/nginx.conf -g "daemon off;"
@ -42,4 +42,4 @@ services:
test: [ "CMD","nginx","-t" ]
restart: always
ports:
- "80:80"
- "8002:80"

2
web/Dockerfile vendored
View File

@ -9,6 +9,6 @@ RUN rm /etc/nginx/conf.d/default.conf && \
# Attention:
# You should run 'npm run build' in the web direction to generate the build direction because this's a react projection.
COPY nginx.conf /etc/nginx/
COPY . /usr/share/nginx/web
COPY ./build/ /usr/share/nginx/web
EXPOSE 80
CMD ['nginx', '-c /etc/nginx/nginx.conf', '-g "daemon off;"']

19529
web/package-lock.json generated vendored

File diff suppressed because it is too large Load Diff