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.
		
		
		
		
			
				
					41 lines
				
				1.1 KiB
			
		
		
			
		
	
	
					41 lines
				
				1.1 KiB
			| 
											6 years ago
										 | #环境变量
 | ||
|  | #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:
 | ||
| 
											6 years ago
										 |   seata-server2:
 | ||
|  |     container_name: seata-server2
 | ||
| 
											6 years ago
										 |     image: seataio/seata-server:latest
 | ||
|  |     environment:
 | ||
| 
											6 years ago
										 |       SEATA_IP: 172.20.0.21
 | ||
|  |       SEATA_PORT: 8091
 | ||
|  |       STORE_MODE: db
 | ||
|  |       SERVER_NODE: 2
 | ||
|  |       SEATA_CONFIG_NAME: file:/root/seata-config/registry
 | ||
|  |     volumes:
 | ||
|  |       - /mnt/epdc/seata/seata-config:/root/seata-config
 | ||
|  |     networks:
 | ||
|  |       epdc_network:
 | ||
|  |         ipv4_address: 172.20.0.21
 | ||
|  | networks:
 | ||
|  |   epdc_network:
 | ||
|  |     external: true
 |