You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
6 years ago
|
#seata环境变量
|
||
|
#seata-server 支持以下环境变量:
|
||
|
#
|
||
|
#SEATA_IP
|
||
|
#可选, 指定seata-server启动的IP, 该IP用于向注册中心注册时使用, 如eureka等
|
||
|
#
|
||
|
#SEATA_PORT
|
||
|
#可选, 指定seata-server启动的端口, 默认为 8091
|
||
|
#
|
||
|
#STORE_MODE
|
||
|
#可选, 指定seata-server的事务日志存储方式, 支持db 和 file, 默认是 file
|
||
|
#
|
||
|
#SERVER_NODE
|
||
|
#可选, 用于指定seata-server节点ID, 如 1,2,3..., 默认为 1
|
||
|
#
|
||
|
#SEATA_ENV
|
||
|
#可选, 指定 seata-server 运行环境, 如 dev, test 等, 服务启动时会使用 registry-dev.conf 这样的配置
|
||
|
#
|
||
|
#SEATA_CONFIG_NAME
|
||
|
#可选, 指定配置文件位置, 如 file:/root/registry, 将会加载 /root/registry.conf 作为配置文件
|
||
|
version: "3.7"
|
||
|
|
||
|
services:
|
||
|
seata-server:
|
||
|
image: seataio/seata-server:latest
|
||
|
hostname: seata-server
|
||
|
ports:
|
||
|
- 9004:8091
|
||
|
environment:
|
||
|
- SEATA_PORT=8091
|
||
|
- SEATA_IP=47.104.85.99
|
||
|
- STORE_MODE=db
|
||
|
- SERVER_NODE=1
|
||
|
- SEATA_CONFIG_NAME=file:/root/seata-config/registry
|
||
|
expose:
|
||
|
- 8091
|
||
|
tty: true
|
||
|
volumes:
|
||
|
- /mnt/docker/config/seata:/root/seata-config
|