Browse Source

新增:

open-data-worker的部署相关文件
dev_shibei_match
wxz 4 years ago
parent
commit
757b04676b
  1. 11
      epmet-module/open-data-worker/open-data-worker-server/Dockerfile
  2. 18
      epmet-module/open-data-worker/open-data-worker-server/deploy/docker-compose-dev.yml
  3. 18
      epmet-module/open-data-worker/open-data-worker-server/deploy/docker-compose-prod.yml
  4. 18
      epmet-module/open-data-worker/open-data-worker-server/deploy/docker-compose-test.yml

11
epmet-module/open-data-worker/open-data-worker-server/Dockerfile

@ -0,0 +1,11 @@
FROM java:8
RUN export LANG="zh_CN.UTF-8"
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' > /etc/timezone
COPY ./target/*.jar ./open-data-worker.jar
EXPOSE 8107
ENTRYPOINT ["sh", "-c", "exec $RUN_INSTRUCT"]

18
epmet-module/open-data-worker/open-data-worker-server/deploy/docker-compose-dev.yml

@ -0,0 +1,18 @@
version: "3.7"
services:
gov-voice-server:
container_name: open-data-worker-server-dev
image: 192.168.1.140:5000/epmet-cloud-dev/open-data-worker-server:version_placeholder
ports:
- "8107:8107"
network_mode: host # 使用现有网络
volumes:
- "/opt/epmet-cloud-logs/dev:/logs"
environment:
RUN_INSTRUCT: "java -Xms32m -Xmx200m -jar ./open-data-worker.jar"
restart: "unless-stopped"
deploy:
resources:
limits:
cpus: '0.1'
memory: 250M

18
epmet-module/open-data-worker/open-data-worker-server/deploy/docker-compose-prod.yml

@ -0,0 +1,18 @@
version: "3.7"
services:
gov-voice-server:
container_name: open-data-worker-server-prod
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/open-data-worker-server:0.3.69
ports:
- "8107:8107"
network_mode: host # 使用现有网络
volumes:
- "/opt/epmet-cloud-logs/prod:/logs"
environment:
RUN_INSTRUCT: "java -Xms256m -Xmx512m -jar ./open-data-worker.jar"
restart: "unless-stopped"
deploy:
resources:
limits:
cpus: '0.1'
memory: 600M

18
epmet-module/open-data-worker/open-data-worker-server/deploy/docker-compose-test.yml

@ -0,0 +1,18 @@
version: "3.7"
services:
gov-voice-server:
container_name: open-data-worker-server-test
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/open-data-worker-server:version_placeholder
ports:
- "8107:8107"
network_mode: host # 使用现有网络
volumes:
- "/opt/epmet-cloud-logs/test:/logs"
environment:
RUN_INSTRUCT: "java -Xms32m -Xmx300m -jar ./open-data-worker.jar"
restart: "unless-stopped"
deploy:
resources:
limits:
cpus: '0.1'
memory: 350M
Loading…
Cancel
Save