modify the docker files and README.md
parent
35d9ea4a02
commit
3828f1f73b
11
README_DE.md
11
README_DE.md
|
@ -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
|
||||
|
||||
|
|
11
README_EN.md
11
README_EN.md
|
@ -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 |
|
||||
|
|
|
@ -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;"']
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
|
@ -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;"']
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue