version: "2.2"

services:
    gateway:
        image: gateway:1.0
        volumes:
            - /etc/localtime:/etc/localtime
- /home/test/apps:/apps command:
-D run entrypoint: "java -Djava.security.egd=file:/dev/./urandom -jar -Xms128m -Xmx128m  -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/apps/  -Duser.timezone=GMT+8 /gateway.jar" tty: false ports: - 81:80 restart: always networks: - paynetwork environment: - nacos_addr=127.0.0.1:8848 - nacos_namespace=29c9467d-7c0a-5cfe-9569-d3ed7cdcb666
            - nacos_port=666//这个是注册上去当前运行服务的端口号
            - nacos_ip=127.666.888.999//这个就是注册上去显示为当前运行服务的ip地址
//下面三个是设置docker支持中文编码的
- LANG=en_US.UTF-8
- LANGUAGE=en_US:en
- LC_ALL=en_US.UTF-8
 

 

posted on 2022-09-26 11:02  枫叶飘零黄昏血  阅读(2298)  评论(2编辑  收藏  举报