0
0
mirror of https://gitea.com/gitea/docs.git synced 2025-03-16 22:40:26 +00:00

use fqin for container images (#125)

It's generally considered a better practice and it's more portable allowing podman to work without having to modify the name.

Reviewed-on: https://gitea.com/gitea/docs/pulls/125
Reviewed-by: Lunny Xiao <lunny@noreply.gitea.com>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
This commit is contained in:
TheFox0x7
2024-12-17 20:23:46 +00:00
committed by Lunny Xiao
parent 2b9cc256ea
commit 7a4e79c937
48 changed files with 236 additions and 236 deletions

@ -23,7 +23,7 @@ In order to get file rendering through external binaries, their associated packa
If you're using a Docker image, your `Dockerfile` should contain something along this lines: If you're using a Docker image, your `Dockerfile` should contain something along this lines:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -358,7 +358,7 @@ If you want traefik to serve your Gitea instance, you can add the following labe
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@ -374,7 +374,7 @@ In case you already have a site, and you want Gitea to share the domain name, yo
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -20,7 +20,7 @@ the official [install instructions](https://docs.docker.com/compose/install/).
## Basics ## Basics
The most simple setup just creates a volume and a network and starts the `gitea/gitea:latest-rootless` The most simple setup just creates a volume and a network and starts the `docker.io/gitea/gitea:latest-rootless`
image as a service. Since there is no database available, one can be initialized using SQLite3. image as a service. Since there is no database available, one can be initialized using SQLite3.
Create a directory for `data` and `config`: Create a directory for `data` and `config`:
@ -38,7 +38,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -71,7 +71,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -95,7 +95,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -115,7 +115,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -136,7 +136,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -156,7 +156,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -184,7 +184,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -211,7 +211,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -283,7 +283,7 @@ docker-compose up -d
- Rename folder (inside volume) gitea to custom - Rename folder (inside volume) gitea to custom
- Edit app.ini if needed - Edit app.ini if needed
- Set START_SSH_SERVER = true - Set START_SSH_SERVER = true
- Use image gitea/gitea:@dockerVersion@-rootless - Use image docker.io/gitea/gitea:@dockerVersion@-rootless
## Managing Deployments With Environment Variables ## Managing Deployments With Environment Variables

@ -18,7 +18,7 @@ the official [install instructions](https://docs.docker.com/compose/install/).
## Basics ## Basics
The most simple setup just creates a volume and a network and starts the `gitea/gitea:latest` The most simple setup just creates a volume and a network and starts the `docker.io/gitea/gitea:latest`
image as a service. Since there is no database available, one can be initialized using SQLite3. image as a service. Since there is no database available, one can be initialized using SQLite3.
Create a directory like `gitea` and paste the following content into a file named `docker-compose.yml`. Create a directory like `gitea` and paste the following content into a file named `docker-compose.yml`.
Note that the volume should be owned by the user/group with the UID/GID specified in the config file. Note that the volume should be owned by the user/group with the UID/GID specified in the config file.
@ -34,7 +34,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -66,7 +66,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -101,7 +101,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -125,7 +125,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -152,7 +152,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -176,7 +176,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -208,7 +208,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -316,8 +316,8 @@ Gitea will generate new secrets/tokens for every new installation automatically
The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables. The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables.
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -225,12 +225,12 @@ You can use the docker image from the [docker hub](https://hub.docker.com/r/gite
Just like the binary, you can use the latest nightly build by using the `nightly` tag, while the `latest` tag is the latest stable release. Just like the binary, you can use the latest nightly build by using the `nightly` tag, while the `latest` tag is the latest stable release.
```bash ```bash
docker pull gitea/act_runner:latest # for the latest stable release docker pull docker.io/gitea/act_runner:latest # for the latest stable release
``` ```
If you want to test newly features, you could also use nightly image If you want to test newly features, you could also use nightly image
```bash ```bash
docker pull gitea/act_runner:nightly # for the latest nightly build docker pull docker.io/gitea/act_runner:nightly # for the latest nightly build
``` ```
### Configuration ### Configuration
@ -238,7 +238,7 @@ docker pull gitea/act_runner:nightly # for the latest nightly build
Configuration is optional, but you could also generate config file with docker: Configuration is optional, but you could also generate config file with docker:
```bash ```bash
docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-config > config.yaml docker run --entrypoint="" --rm -it docker.io/gitea/act_runner:latest act_runner generate-config > config.yaml
``` ```
When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume: When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume:
@ -263,7 +263,7 @@ docker run \
-e GITEA_RUNNER_REGISTRATION_TOKEN=<registration_token> \ -e GITEA_RUNNER_REGISTRATION_TOKEN=<registration_token> \
-e GITEA_RUNNER_NAME=<runner_name> \ -e GITEA_RUNNER_NAME=<runner_name> \
--name my_runner \ --name my_runner \
-d gitea/act_runner:nightly -d docker.io/gitea/act_runner:nightly
``` ```
There are more parameters so that you can configure it. There are more parameters so that you can configure it.
@ -279,7 +279,7 @@ docker run \
-e GITEA_RUNNER_NAME=<runner_name> \ -e GITEA_RUNNER_NAME=<runner_name> \
-e GITEA_RUNNER_LABELS=<runner_labels> \ -e GITEA_RUNNER_LABELS=<runner_labels> \
--name my_runner \ --name my_runner \
-d gitea/act_runner:nightly -d docker.io/gitea/act_runner:nightly
``` ```
You may notice that we have mounted the `/var/run/docker.sock` into the container. You may notice that we have mounted the `/var/run/docker.sock` into the container.
@ -295,7 +295,7 @@ You could also set up the runner using the following `docker-compose.yml`:
version: "3.8" version: "3.8"
services: services:
runner: runner:
image: gitea/act_runner:nightly image: docker.io/gitea/act_runner:nightly
environment: environment:
CONFIG_FILE: /config.yaml CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "${INSTANCE_URL}" GITEA_INSTANCE_URL: "${INSTANCE_URL}"
@ -343,7 +343,7 @@ cache:
docker run \ docker run \
--name gitea-docker-runner \ --name gitea-docker-runner \
-p 8088:8088 \ -p 8088:8088 \
-d gitea/act_runner:nightly -d docker.io/gitea/act_runner:nightly
``` ```
### Labels ### Labels

@ -24,7 +24,7 @@ Gitea 通过外部二进制文件支持自定义文件渲染(例如 Jupyter no
如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容: 如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -360,7 +360,7 @@ backend gitea
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@ -376,7 +376,7 @@ gitea:
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -33,7 +33,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -64,7 +64,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -87,7 +87,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -107,7 +107,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -127,7 +127,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -147,7 +147,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -172,7 +172,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -199,7 +199,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -252,7 +252,7 @@ docker-compose up -d
- 将卷中的文件夹gitea重命名为 custom - 将卷中的文件夹gitea重命名为 custom
- 如果需要,编辑 `app.ini` - 如果需要,编辑 `app.ini`
- 设置 `START_SSH_SERVER = true` - 设置 `START_SSH_SERVER = true`
- 使用镜像 `gitea/gitea:@dockerVersion@-rootless` - 使用镜像 ` docker.io/gitea/gitea:@dockerVersion@-rootless`
## 使用环境变量管理部署 ## 使用环境变量管理部署

@ -25,7 +25,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -55,7 +55,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -89,7 +89,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -113,7 +113,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -139,7 +139,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -163,7 +163,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -192,7 +192,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -291,8 +291,8 @@ Gitea 将为每次新安装自动生成新的 `SECRET_KEY` 并将它们写入 `a
以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。 以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -42,8 +42,8 @@ chmod +x act_runner
与二进制文件类似,您可以使用`nightly`标签使用最新的夜间构建版本,而`latest`标签是最新的稳定版本。 与二进制文件类似,您可以使用`nightly`标签使用最新的夜间构建版本,而`latest`标签是最新的稳定版本。
```bash ```bash
docker pull gitea/act_runner:latest # for the latest stable release docker pull docker.io/gitea/act_runner:latest # for the latest stable release
docker pull gitea/act_runner:nightly # for the latest nightly build docker pull docker.io/gitea/act_runner:nightly # for the latest nightly build
``` ```
## 配置 ## 配置
@ -66,7 +66,7 @@ docker pull gitea/act_runner:nightly # for the latest nightly build
您亦可以如下使用 docker 创建配置文件: 您亦可以如下使用 docker 创建配置文件:
```bash ```bash
docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-config > config.yaml docker run --entrypoint="" --rm -it docker.io/gitea/act_runner:latest act_runner generate-config > config.yaml
``` ```
当使用Docker镜像时可以使用`CONFIG_FILE`环境变量指定配置文件。确保将文件作为卷挂载到容器中: 当使用Docker镜像时可以使用`CONFIG_FILE`环境变量指定配置文件。确保将文件作为卷挂载到容器中:

@ -22,7 +22,7 @@ Gitea 通过外部二进制文件支持自定义文件渲染(例如 Jupyter no
如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容: 如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -114,7 +114,7 @@ git.example.com {
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -33,7 +33,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -64,7 +64,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -87,7 +87,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -107,7 +107,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -127,7 +127,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -147,7 +147,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -172,7 +172,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -199,7 +199,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -252,7 +252,7 @@ docker-compose up -d
- 将卷中的文件夹gitea重命名为 custom - 将卷中的文件夹gitea重命名为 custom
- 如果需要,编辑 `app.ini` - 如果需要,编辑 `app.ini`
- 设置 `START_SSH_SERVER = true` - 设置 `START_SSH_SERVER = true`
- 使用镜像 `gitea/gitea:@dockerVersion@-rootless` - 使用镜像 ` docker.io/gitea/gitea:@dockerVersion@-rootless`
## 使用环境变量管理部署 ## 使用环境变量管理部署

@ -23,7 +23,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -53,7 +53,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -87,7 +87,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -111,7 +111,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -137,7 +137,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -161,7 +161,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -190,7 +190,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -290,8 +290,8 @@ Gitea 将为每次新安装自动生成新的 `SECRET_KEY` 并将它们写入 `a
以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。 以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -22,7 +22,7 @@ Gitea 通过外部二进制文件支持自定义文件渲染(例如 Jupyter no
如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容: 如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -119,7 +119,7 @@ git.example.com {
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -33,7 +33,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -64,7 +64,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -87,7 +87,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -107,7 +107,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -127,7 +127,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -147,7 +147,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -172,7 +172,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -199,7 +199,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -252,7 +252,7 @@ docker-compose up -d
- 将卷中的文件夹gitea重命名为 custom - 将卷中的文件夹gitea重命名为 custom
- 如果需要,编辑 `app.ini` - 如果需要,编辑 `app.ini`
- 设置 `START_SSH_SERVER = true` - 设置 `START_SSH_SERVER = true`
- 使用镜像 `gitea/gitea:@dockerVersion@-rootless` - 使用镜像 ` docker.io/gitea/gitea:@dockerVersion@-rootless`
## 使用环境变量管理部署 ## 使用环境变量管理部署

@ -28,7 +28,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -58,7 +58,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -92,7 +92,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -116,7 +116,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -142,7 +142,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -166,7 +166,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -195,7 +195,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -292,8 +292,8 @@ Gitea 将为每次新安装自动生成新的 `SECRET_KEY` 并将它们写入 `a
以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。 以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -44,8 +44,8 @@ chmod +x act_runner
与二进制文件类似,您可以使用`nightly`标签使用最新的夜间构建版本,而`latest`标签是最新的稳定版本。 与二进制文件类似,您可以使用`nightly`标签使用最新的夜间构建版本,而`latest`标签是最新的稳定版本。
```bash ```bash
docker pull gitea/act_runner:latest # for the latest stable release docker pull docker.io/gitea/act_runner:latest # for the latest stable release
docker pull gitea/act_runner:nightly # for the latest nightly build docker pull docker.io/gitea/act_runner:nightly # for the latest nightly build
``` ```
## 配置 ## 配置
@ -68,7 +68,7 @@ docker pull gitea/act_runner:nightly # for the latest nightly build
您亦可以如下使用 docker 创建配置文件: 您亦可以如下使用 docker 创建配置文件:
```bash ```bash
docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-config > config.yaml docker run --entrypoint="" --rm -it docker.io/gitea/act_runner:latest act_runner generate-config > config.yaml
``` ```
当使用Docker镜像时可以使用`CONFIG_FILE`环境变量指定配置文件。确保将文件作为卷挂载到容器中: 当使用Docker镜像时可以使用`CONFIG_FILE`环境变量指定配置文件。确保将文件作为卷挂载到容器中:

@ -22,7 +22,7 @@ Gitea 通过外部二进制文件支持自定义文件渲染(例如 Jupyter no
如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容: 如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -119,7 +119,7 @@ git.example.com {
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -33,7 +33,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -64,7 +64,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -87,7 +87,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -107,7 +107,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -127,7 +127,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -147,7 +147,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -172,7 +172,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -199,7 +199,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -252,7 +252,7 @@ docker-compose up -d
- 将卷中的文件夹gitea重命名为 custom - 将卷中的文件夹gitea重命名为 custom
- 如果需要,编辑 `app.ini` - 如果需要,编辑 `app.ini`
- 设置 `START_SSH_SERVER = true` - 设置 `START_SSH_SERVER = true`
- 使用镜像 `gitea/gitea:@dockerVersion@-rootless` - 使用镜像 ` docker.io/gitea/gitea:@dockerVersion@-rootless`
## 使用环境变量管理部署 ## 使用环境变量管理部署

@ -28,7 +28,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -58,7 +58,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -92,7 +92,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -116,7 +116,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -142,7 +142,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -166,7 +166,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -195,7 +195,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -294,8 +294,8 @@ Gitea 将为每次新安装自动生成新的 `SECRET_KEY` 并将它们写入 `a
以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。 以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -44,8 +44,8 @@ chmod +x act_runner
与二进制文件类似,您可以使用`nightly`标签使用最新的夜间构建版本,而`latest`标签是最新的稳定版本。 与二进制文件类似,您可以使用`nightly`标签使用最新的夜间构建版本,而`latest`标签是最新的稳定版本。
```bash ```bash
docker pull gitea/act_runner:latest # for the latest stable release docker pull docker.io/gitea/act_runner:latest # for the latest stable release
docker pull gitea/act_runner:nightly # for the latest nightly build docker pull docker.io/gitea/act_runner:nightly # for the latest nightly build
``` ```
## 配置 ## 配置
@ -68,7 +68,7 @@ docker pull gitea/act_runner:nightly # for the latest nightly build
您亦可以如下使用 docker 创建配置文件: 您亦可以如下使用 docker 创建配置文件:
```bash ```bash
docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-config > config.yaml docker run --entrypoint="" --rm -it docker.io/gitea/act_runner:latest act_runner generate-config > config.yaml
``` ```
当使用Docker镜像时可以使用`CONFIG_FILE`环境变量指定配置文件。确保将文件作为卷挂载到容器中: 当使用Docker镜像时可以使用`CONFIG_FILE`环境变量指定配置文件。确保将文件作为卷挂载到容器中:

@ -25,7 +25,7 @@ Gitea 通过外部二进制文件支持自定义文件渲染(例如 Jupyter no
如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容: 如果您正在使用 Docker 镜像,则您的 `Dockerfile` 应该包含以下内容:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -363,7 +363,7 @@ backend gitea
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@ -379,7 +379,7 @@ gitea:
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -33,7 +33,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -64,7 +64,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -87,7 +87,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -107,7 +107,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -127,7 +127,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -147,7 +147,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -172,7 +172,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -199,7 +199,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -252,7 +252,7 @@ docker-compose up -d
- 将卷中的文件夹gitea重命名为 custom - 将卷中的文件夹gitea重命名为 custom
- 如果需要,编辑 `app.ini` - 如果需要,编辑 `app.ini`
- 设置 `START_SSH_SERVER = true` - 设置 `START_SSH_SERVER = true`
- 使用镜像 `gitea/gitea:@dockerVersion@-rootless` - 使用镜像 ` docker.io/gitea/gitea:@dockerVersion@-rootless`
## 使用环境变量管理部署 ## 使用环境变量管理部署

@ -28,7 +28,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -58,7 +58,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -92,7 +92,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -116,7 +116,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -142,7 +142,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -166,7 +166,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -195,7 +195,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -294,8 +294,8 @@ Gitea 将为每次新安装自动生成新的 `SECRET_KEY` 并将它们写入 `a
以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。 以下命令将向 `stdout` 输出一个新的 `SECRET_KEY``INTERNAL_TOKEN`,然后您可以将其放入环境变量中。
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -44,8 +44,8 @@ chmod +x act_runner
与二进制文件类似,您可以使用`nightly`标签使用最新的夜间构建版本,而`latest`标签是最新的稳定版本。 与二进制文件类似,您可以使用`nightly`标签使用最新的夜间构建版本,而`latest`标签是最新的稳定版本。
```bash ```bash
docker pull gitea/act_runner:latest # for the latest stable release docker pull docker.io/gitea/act_runner:latest # for the latest stable release
docker pull gitea/act_runner:nightly # for the latest nightly build docker pull docker.io/gitea/act_runner:nightly # for the latest nightly build
``` ```
## 配置 ## 配置
@ -68,7 +68,7 @@ docker pull gitea/act_runner:nightly # for the latest nightly build
您亦可以如下使用 docker 创建配置文件: 您亦可以如下使用 docker 创建配置文件:
```bash ```bash
docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-config > config.yaml docker run --entrypoint="" --rm -it docker.io/gitea/act_runner:latest act_runner generate-config > config.yaml
``` ```
当使用Docker镜像时可以使用`CONFIG_FILE`环境变量指定配置文件。确保将文件作为卷挂载到容器中: 当使用Docker镜像时可以使用`CONFIG_FILE`环境变量指定配置文件。确保将文件作为卷挂载到容器中:

@ -21,7 +21,7 @@ In order to get file rendering through external binaries, their associated packa
If you're using a Docker image, your `Dockerfile` should contain something along this lines: If you're using a Docker image, your `Dockerfile` should contain something along this lines:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -329,7 +329,7 @@ If you want traefik to serve your Gitea instance, you can add the following labe
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -36,7 +36,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -69,7 +69,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -93,7 +93,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -113,7 +113,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -134,7 +134,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -154,7 +154,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -182,7 +182,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -209,7 +209,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -281,7 +281,7 @@ docker-compose up -d
- Rename folder (inside volume) gitea to custom - Rename folder (inside volume) gitea to custom
- Edit app.ini if needed - Edit app.ini if needed
- Set START_SSH_SERVER = true - Set START_SSH_SERVER = true
- Use image gitea/gitea:@dockerVersion@-rootless - Use image docker.io/gitea/gitea:@dockerVersion@-rootless
## Managing Deployments With Environment Variables ## Managing Deployments With Environment Variables

@ -32,7 +32,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -64,7 +64,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -99,7 +99,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -123,7 +123,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -150,7 +150,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -174,7 +174,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -206,7 +206,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -305,8 +305,8 @@ Gitea will generate new secrets/tokens for every new installation automatically
The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables. The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables.
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -25,7 +25,7 @@ In order to get file rendering through external binaries, their associated packa
If you're using a Docker image, your `Dockerfile` should contain something along this lines: If you're using a Docker image, your `Dockerfile` should contain something along this lines:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -333,7 +333,7 @@ If you want traefik to serve your Gitea instance, you can add the following labe
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@ -349,7 +349,7 @@ In case you already have a site, and you want Gitea to share the domain name, yo
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -38,7 +38,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -71,7 +71,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -95,7 +95,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -115,7 +115,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -136,7 +136,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -156,7 +156,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -184,7 +184,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -211,7 +211,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -283,7 +283,7 @@ docker-compose up -d
- Rename folder (inside volume) gitea to custom - Rename folder (inside volume) gitea to custom
- Edit app.ini if needed - Edit app.ini if needed
- Set START_SSH_SERVER = true - Set START_SSH_SERVER = true
- Use image gitea/gitea:@dockerVersion@-rootless - Use image docker.io/gitea/gitea:@dockerVersion@-rootless
## Managing Deployments With Environment Variables ## Managing Deployments With Environment Variables

@ -36,7 +36,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -68,7 +68,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -103,7 +103,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -127,7 +127,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -154,7 +154,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -178,7 +178,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -210,7 +210,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -317,8 +317,8 @@ Gitea will generate new secrets/tokens for every new installation automatically
The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables. The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables.
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -44,8 +44,8 @@ You can use the docker image from the [docker hub](https://hub.docker.com/r/gite
Just like the binary, you can use the latest nightly build by using the `nightly` tag, while the `latest` tag is the latest stable release. Just like the binary, you can use the latest nightly build by using the `nightly` tag, while the `latest` tag is the latest stable release.
```bash ```bash
docker pull gitea/act_runner:latest # for the latest stable release docker pull docker.io/gitea/act_runner:latest # for the latest stable release
docker pull gitea/act_runner:nightly # for the latest nightly build docker pull docker.io/gitea/act_runner:nightly # for the latest nightly build
``` ```
## Configuration ## Configuration
@ -68,7 +68,7 @@ The default configuration is safe to use without any modification, so you can ju
You could also generate config file with docker: You could also generate config file with docker:
```bash ```bash
docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-config > config.yaml docker run --entrypoint="" --rm -it docker.io/gitea/act_runner:latest act_runner generate-config > config.yaml
``` ```
When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume: When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume:

@ -25,7 +25,7 @@ In order to get file rendering through external binaries, their associated packa
If you're using a Docker image, your `Dockerfile` should contain something along this lines: If you're using a Docker image, your `Dockerfile` should contain something along this lines:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -335,7 +335,7 @@ If you want traefik to serve your Gitea instance, you can add the following labe
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@ -351,7 +351,7 @@ In case you already have a site, and you want Gitea to share the domain name, yo
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -38,7 +38,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -71,7 +71,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -95,7 +95,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -115,7 +115,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -136,7 +136,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -156,7 +156,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -184,7 +184,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -211,7 +211,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -283,7 +283,7 @@ docker-compose up -d
- Rename folder (inside volume) gitea to custom - Rename folder (inside volume) gitea to custom
- Edit app.ini if needed - Edit app.ini if needed
- Set START_SSH_SERVER = true - Set START_SSH_SERVER = true
- Use image gitea/gitea:@dockerVersion@-rootless - Use image docker.io/gitea/gitea:@dockerVersion@-rootless
## Managing Deployments With Environment Variables ## Managing Deployments With Environment Variables

@ -36,7 +36,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -68,7 +68,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -103,7 +103,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -127,7 +127,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -154,7 +154,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -178,7 +178,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -210,7 +210,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -317,8 +317,8 @@ Gitea will generate new secrets/tokens for every new installation automatically
The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables. The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables.
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -44,8 +44,8 @@ You can use the docker image from the [docker hub](https://hub.docker.com/r/gite
Just like the binary, you can use the latest nightly build by using the `nightly` tag, while the `latest` tag is the latest stable release. Just like the binary, you can use the latest nightly build by using the `nightly` tag, while the `latest` tag is the latest stable release.
```bash ```bash
docker pull gitea/act_runner:latest # for the latest stable release docker pull docker.io/gitea/act_runner:latest # for the latest stable release
docker pull gitea/act_runner:nightly # for the latest nightly build docker pull docker.io/gitea/act_runner:nightly # for the latest nightly build
``` ```
## Configuration ## Configuration
@ -68,7 +68,7 @@ The default configuration is safe to use without any modification, so you can ju
You could also generate config file with docker: You could also generate config file with docker:
```bash ```bash
docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-config > config.yaml docker run --entrypoint="" --rm -it docker.io/gitea/act_runner:latest act_runner generate-config > config.yaml
``` ```
When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume: When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume:

@ -25,7 +25,7 @@ In order to get file rendering through external binaries, their associated packa
If you're using a Docker image, your `Dockerfile` should contain something along this lines: If you're using a Docker image, your `Dockerfile` should contain something along this lines:
```docker ```docker
FROM gitea/gitea:@dockerVersion@ FROM docker.io/gitea/gitea:@dockerVersion@
[...] [...]
COPY custom/app.ini /data/gitea/conf/app.ini COPY custom/app.ini /data/gitea/conf/app.ini

@ -356,7 +356,7 @@ If you want traefik to serve your Gitea instance, you can add the following labe
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@ -372,7 +372,7 @@ In case you already have a site, and you want Gitea to share the domain name, yo
```yaml ```yaml
gitea: gitea:
image: gitea/gitea image: docker.io/gitea/gitea
... ...
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"

@ -38,7 +38,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -71,7 +71,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- ./data:/var/lib/gitea - ./data:/var/lib/gitea
@ -95,7 +95,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
+ environment: + environment:
+ - GITEA__database__DB_TYPE=mysql + - GITEA__database__DB_TYPE=mysql
+ - GITEA__database__HOST=db:3306 + - GITEA__database__HOST=db:3306
@ -115,7 +115,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -136,7 +136,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
environment: environment:
+ - GITEA__database__DB_TYPE=postgres + - GITEA__database__DB_TYPE=postgres
+ - GITEA__database__HOST=db:5432 + - GITEA__database__HOST=db:5432
@ -156,7 +156,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -184,7 +184,7 @@ version: "2"
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
volumes: volumes:
- - ./data:/var/lib/gitea - - ./data:/var/lib/gitea
@ -211,7 +211,7 @@ version: "2"
services: services:
server: server:
image: gitea/gitea:@dockerVersion@-rootless image: docker.io/gitea/gitea:@dockerVersion@-rootless
restart: always restart: always
+ user: 1001 + user: 1001
volumes: volumes:
@ -283,7 +283,7 @@ docker-compose up -d
- Rename folder (inside volume) gitea to custom - Rename folder (inside volume) gitea to custom
- Edit app.ini if needed - Edit app.ini if needed
- Set START_SSH_SERVER = true - Set START_SSH_SERVER = true
- Use image gitea/gitea:@dockerVersion@-rootless - Use image docker.io/gitea/gitea:@dockerVersion@-rootless
## Managing Deployments With Environment Variables ## Managing Deployments With Environment Variables

@ -36,7 +36,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -68,7 +68,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -103,7 +103,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -127,7 +127,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: mysql:8 + image: docker.io/library/mysql:8
+ restart: always + restart: always
+ environment: + environment:
+ - MYSQL_ROOT_PASSWORD=gitea + - MYSQL_ROOT_PASSWORD=gitea
@ -154,7 +154,7 @@ networks:
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1000 - USER_UID=1000
@ -178,7 +178,7 @@ services:
+ - db + - db
+ +
+ db: + db:
+ image: postgres:14 + image: docker.io/library/postgres:14
+ restart: always + restart: always
+ environment: + environment:
+ - POSTGRES_USER=gitea + - POSTGRES_USER=gitea
@ -210,7 +210,7 @@ networks:
+ +
services: services:
server: server:
image: gitea/gitea:@dockerVersion@ image: docker.io/gitea/gitea:@dockerVersion@
container_name: gitea container_name: gitea
restart: always restart: always
networks: networks:
@ -318,8 +318,8 @@ Gitea will generate new secrets/tokens for every new installation automatically
The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables. The following commands will output a new `SECRET_KEY` and `INTERNAL_TOKEN` to `stdout`, which you can then place in your environment variables.
```bash ```bash
docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret SECRET_KEY
docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN docker run -it --rm docker.io/gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
``` ```
```yaml ```yaml

@ -225,12 +225,12 @@ You can use the docker image from the [docker hub](https://hub.docker.com/r/gite
Just like the binary, you can use the latest nightly build by using the `nightly` tag, while the `latest` tag is the latest stable release. Just like the binary, you can use the latest nightly build by using the `nightly` tag, while the `latest` tag is the latest stable release.
```bash ```bash
docker pull gitea/act_runner:latest # for the latest stable release docker pull docker.io/gitea/act_runner:latest # for the latest stable release
``` ```
If you want to test newly features, you could also use nightly image If you want to test newly features, you could also use nightly image
```bash ```bash
docker pull gitea/act_runner:nightly # for the latest nightly build docker pull docker.io/gitea/act_runner:nightly # for the latest nightly build
``` ```
### Configuration ### Configuration
@ -238,7 +238,7 @@ docker pull gitea/act_runner:nightly # for the latest nightly build
Configuration is optional, but you could also generate config file with docker: Configuration is optional, but you could also generate config file with docker:
```bash ```bash
docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-config > config.yaml docker run --entrypoint="" --rm -it docker.io/gitea/act_runner:latest act_runner generate-config > config.yaml
``` ```
When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume: When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume: