docker-compose.yml 962 Bytes
version: "3"
services:
  nacos:
    image: nacos/nacos-server:v2.2.3-slim
    container_name: nacos-standalone-local
    environment:
      - PREFER_HOST_MODE=hostname
      - MODE=standalone
      - NACOS_AUTH_IDENTITY_KEY=serverIdentity
      - NACOS_AUTH_IDENTITY_VALUE=security
      - NACOS_AUTH_TOKEN=SecretKey012345678901234567890123456789012345678901234567890123456789
    volumes:
      - ./nacos-logs/:/home/nacos/logs
    ports:
      - "8848:8848"
      - "9848:9848"


  seata-server:
    image: seataio/seata-server:1.6.1
    hostname: seata-server
    restart: always
    container_name: seata-standalone-local
    ports:
      - "8091:8091"
    environment:
      - SEATA_PORT=8091
      - STORE_MODE=file

#  redis:
#    image: redis:6.2-alpine
#    hostname: redis
#    restart: always
#    container_name: redis-standalone-local
#    ports:
#      - "6379:6379"
#    command: redis-server --save 20 1 --loglevel warning  --requirepass 123456