Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: optimize seata-server image version #903

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ date: 2022-09-06

# Deploy Seata Server By Docker Compose

## Precautions
- Please avoid directly pulling the latest version image. The latest version is not necessarily a stable version. To avoid unnecessary problems, please go to [docker image warehouse](https://hub.docker.com/r/seataio/seata-server/tags) to determine the image version to be pulled.
## Precautions
- Please avoid directly pulling the latest version image. The latest version is not necessarily a stable version. To avoid unnecessary problems, please go to [docker image warehouse](https://hub.docker.com/r/apache/seata-server/tags) to determine the image version to be pulled.
- Starting from Seata Server version 1.5.0, the configuration file has been changed to application.yml. So when using custom configuration, you need to copy the native configuration first.

## Use custom configuration file
Expand All @@ -21,7 +21,7 @@ docker-compose.yaml
version: "3.1"
services:
seata-server:
image: seataio/seata-server:${latest-release-version}
image: apache/seata-server:${latest-release-version}
ports:
- "7091:7091"
- "8091:8091"
Expand All @@ -48,7 +48,7 @@ docker-compose.yaml
version: "3.1"
services:
seata-server:
image: seataio/seata-server:${latest-release-version}
image: apache/seata-server:${latest-release-version}
hostname: seata-server
ports:
- "7091:7091"
Expand Down Expand Up @@ -112,7 +112,7 @@ seata:
url: jdbc:mysql://127.0.0.1:3306/seata-server?useUnicode=true&characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false
user: "username"
password: "password"

# server:
# service-port: 8091 #If not configured, the default is '${server.port} + 1000'
security:
Expand All @@ -127,7 +127,7 @@ seata:
version: "3.1"
services:
seata-server:
image: seataio/seata-server:1.5.2
image: apache/seata-server:2.1.0
ports:
- "7091:7091"
- "8091:8091"
Expand Down Expand Up @@ -272,7 +272,7 @@ server.recovery.timeoutRetryPeriod=1000
version: "3.1"
services:
seata-server:
image: seataio/seata-server:1.5.2
image: apache/seata-server:2.1.0
ports:
- "7091:7091"
- "8091:8091"
Expand Down Expand Up @@ -426,7 +426,7 @@ server.recovery.timeoutRetryPeriod=1000
version: "3.1"
services:
seata-server-1:
image: seataio/seata-server:${latest-release-version}
image: apache/seata-server:${latest-release-version}
ports:
- "7091:7091"
- "8091:8091"
Expand All @@ -443,7 +443,7 @@ services:
- "./seata-server/resources:/seata-server/resources"

seata-server-2:
image: seataio/seata-server:${latest-release-version}
image: apache/seata-server:${latest-release-version}
ports:
- "7092:7091"
- "8092:8092"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ date: 2019-11-25

# Deploy Seata Server By Docker

## Quick Start
## Quick Start

#### Start a seata-server instance

```bash
$ docker run --name seata-server -p 8091:8091 seataio/seata-server:1.4.2
$ docker run --name seata-server -p 8091:8091 apache/seata-server:2.1.0
```

#### Specify server IP and port
Expand All @@ -24,18 +24,18 @@ $ docker run --name seata-server \
-p 8091:8091 \
-e SEATA_IP=192.168.1.1 \
-e SEATA_PORT=8091 \
seataio/seata-server
apache/seata-server
```

#### Docker compose
#### Docker compose

Example of `docker-compose.yaml`

```yaml
version: "3"
services:
seata-server:
image: seataio/seata-server
image: apache/seata-server
hostname: seata-server
ports:
- "8091:8091"
Expand All @@ -58,7 +58,7 @@ $ docker logs -f seata-server

Custom configuration implement by mount `registry.conf` and `file.conf` to container.

- Specify registry.conf
- Specify registry.conf

The environment variable`SEATA_CONFIG_NAME` is required when use a custom configuration , and the value must be started with `file:` like `file:/root/seata-config/registry`:

Expand All @@ -67,12 +67,12 @@ $ docker run --name seata-server \
-p 8091:8091 \
-e SEATA_CONFIG_NAME=file:/root/seata-config/registry \
-v /User/seata/config:/root/seata-config \
seataio/seata-server
apache/seata-server
```

The param `-e` specify environment, and the param `-v` specify mount volume.

- Specify file.conf
- Specify file.conf

If you need specify `file.conf`, just modify `config` like below in `registry.conf` file:

Expand All @@ -86,17 +86,17 @@ config {
}
```

## Environment Variables
## Environment Variables

You can modify configuration of seata-server by the environment variables like this:

- **SEATA_IP**

> The variable is optional, specifies registry IP instead of the container IP in registry center like eureka or others.
> The variable is optional, specifies registry IP instead of the container IP in registry center like eureka or others.

- **SEATA_PORT**

> The variable is optional, specifies seata-server port, default is `8091`
> The variable is optional, specifies seata-server port, default is `8091`

- **STORE_MODE**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ replicaCount: 1
namespace: default

image:
repository: seataio/seata-server
repository: apache/seata-server
tag: latest
pullPolicy: IfNotPresent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
spec:
containers:
- name: seata-server
image: docker.io/seataio/seata-server:latest
image: apache/seata-server:2.1.0
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
Expand Down Expand Up @@ -114,7 +114,7 @@ spec:
spec:
containers:
- name: seata-server
image: docker.io/seataio/seata-server:latest
image: apache/seata-server:2.1.0
imagePullPolicy: IfNotPresent
env:
- name: SEATA_CONFIG_NAME
Expand Down Expand Up @@ -170,21 +170,21 @@ data:
application.yml: |
server:
port: 7091

spring:
application:
name: seata-server

logging:
config: classpath:logback-spring.xml
file:
path: ${user.home}/logs/seata

console:
user:
username: seata
password: seata

seata:
config:
# support: nacos, consul, apollo, zk, etcd3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ registry {

config {
type = "nacos"

nacos {
serverAddr = "192.168.199.2"
namespace = ""
Expand Down Expand Up @@ -105,7 +105,7 @@ spec:
spec:
containers:
- name: seata-ha-server
image: docker.io/seataio/seata-server:latest
image: apache/seata-server:2.1.0
imagePullPolicy: IfNotPresent
env:
- name: SEATA_CONFIG_NAME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ date: 2022-09-06

# Deploy Seata Server By Docker Compose

## Precautions
- Please avoid directly pulling the latest version image. The latest version is not necessarily a stable version. To avoid unnecessary problems, please go to [docker image warehouse](https://hub.docker.com/r/seataio/seata-server/tags) to determine the image version to be pulled.
## Precautions
- Please avoid directly pulling the latest version image. The latest version is not necessarily a stable version. To avoid unnecessary problems, please go to [docker image warehouse](https://hub.docker.com/r/apache/seata-server/tags) to determine the image version to be pulled.
- Starting from Seata Server version 1.5.0, the configuration file has been changed to application.yml. So when using custom configuration, you need to copy the native configuration first.

## Use custom configuration file
Expand All @@ -21,7 +21,7 @@ docker-compose.yaml
version: "3.1"
services:
seata-server:
image: seataio/seata-server:${latest-release-version}
image: apache/seata-server:${latest-release-version}
ports:
- "7091:7091"
- "8091:8091"
Expand All @@ -48,7 +48,7 @@ docker-compose.yaml
version: "3.1"
services:
seata-server:
image: seataio/seata-server:${latest-release-version}
image: apache/seata-server:${latest-release-version}
hostname: seata-server
ports:
- "7091:7091"
Expand Down Expand Up @@ -112,7 +112,7 @@ seata:
url: jdbc:mysql://127.0.0.1:3306/seata-server?useUnicode=true&characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false
user: "username"
password: "password"

# server:
# service-port: 8091 #If not configured, the default is '${server.port} + 1000'
security:
Expand All @@ -127,7 +127,7 @@ seata:
version: "3.1"
services:
seata-server:
image: seataio/seata-server:1.5.2
image: apache/seata-server:2.1.0
ports:
- "7091:7091"
- "8091:8091"
Expand Down Expand Up @@ -272,7 +272,7 @@ server.recovery.timeoutRetryPeriod=1000
version: "3.1"
services:
seata-server:
image: seataio/seata-server:1.5.2
image: apache/seata-server:2.1.0
ports:
- "7091:7091"
- "8091:8091"
Expand Down Expand Up @@ -426,7 +426,7 @@ server.recovery.timeoutRetryPeriod=1000
version: "3.1"
services:
seata-server-1:
image: seataio/seata-server:${latest-release-version}
image: apache/seata-server:${latest-release-version}
ports:
- "7091:7091"
- "8091:8091"
Expand All @@ -443,7 +443,7 @@ services:
- "./seata-server/resources:/seata-server/resources"

seata-server-2:
image: seataio/seata-server:${latest-release-version}
image: apache/seata-server:${latest-release-version}
ports:
- "7092:7091"
- "8092:8092"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ date: 2019-11-25

# Deploy Seata Server By Docker

## Quick Start
## Quick Start

#### Start a seata-server instance

```bash
$ docker run --name seata-server -p 8091:8091 seataio/seata-server:1.4.2
$ docker run --name seata-server -p 8091:8091 apache/seata-server:2.1.0
```

#### Specify server IP and port
Expand All @@ -24,18 +24,18 @@ $ docker run --name seata-server \
-p 8091:8091 \
-e SEATA_IP=192.168.1.1 \
-e SEATA_PORT=8091 \
seataio/seata-server
apache/seata-server
```

#### Docker compose
#### Docker compose

Example of `docker-compose.yaml`

```yaml
version: "3"
services:
seata-server:
image: seataio/seata-server
image: apache/seata-server
hostname: seata-server
ports:
- "8091:8091"
Expand All @@ -58,7 +58,7 @@ $ docker logs -f seata-server

Custom configuration implement by mount `registry.conf` and `file.conf` to container.

- Specify registry.conf
- Specify registry.conf

The environment variable`SEATA_CONFIG_NAME` is required when use a custom configuration , and the value must be started with `file:` like `file:/root/seata-config/registry`:

Expand All @@ -67,12 +67,12 @@ $ docker run --name seata-server \
-p 8091:8091 \
-e SEATA_CONFIG_NAME=file:/root/seata-config/registry \
-v /User/seata/config:/root/seata-config \
seataio/seata-server
apache/seata-server
```

The param `-e` specify environment, and the param `-v` specify mount volume.

- Specify file.conf
- Specify file.conf

If you need specify `file.conf`, just modify `config` like below in `registry.conf` file:

Expand All @@ -86,17 +86,17 @@ config {
}
```

## Environment Variables
## Environment Variables

You can modify configuration of seata-server by the environment variables like this:

- **SEATA_IP**

> The variable is optional, specifies registry IP instead of the container IP in registry center like eureka or others.
> The variable is optional, specifies registry IP instead of the container IP in registry center like eureka or others.

- **SEATA_PORT**

> The variable is optional, specifies seata-server port, default is `8091`
> The variable is optional, specifies seata-server port, default is `8091`

- **STORE_MODE**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ replicaCount: 1
namespace: default

image:
repository: seataio/seata-server
tag: latest
repository: apache/seata-server
tag: 2.1.0
pullPolicy: IfNotPresent

service:
Expand Down
Loading
Loading