forked from swoole/swoole-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31d563e
commit f811c5b
Showing
3 changed files
with
90 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
|
||
install gitea with docker | ||
|
||
https://docs.gitea.com/zh-cn/installation/install-with-docker | ||
|
||
|
||
|
||
k8s 使用的端口 | ||
|
||
https://kubernetes.io/zh-cn/docs/reference/networking/ports-and-protocols/ | ||
|
||
不带选择器的服务 | ||
Services without selectors | ||
https://kubernetes.io/docs/concepts/services-networking/service/#services-without-selectors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: "3" | ||
|
||
networks: | ||
gitea: | ||
external: false | ||
|
||
services: | ||
server: | ||
image: docker.io/gitea/gitea:1.22.6 | ||
container_name: gitea | ||
environment: | ||
- USER_UID=1000 | ||
- USER_GID=1000 | ||
- GITEA__database__DB_TYPE=postgres | ||
- GITEA__database__HOST=db:5432 | ||
- GITEA__database__NAME=gitea | ||
- GITEA__database__USER=gitea | ||
- GITEA__database__PASSWD=gitea | ||
restart: always | ||
networks: | ||
- gitea | ||
volumes: | ||
- ./gitea:/data | ||
- /etc/timezone:/etc/timezone:ro | ||
- /etc/localtime:/etc/localtime:ro | ||
ports: | ||
- "33001:3000" | ||
- "33002:22" | ||
depends_on: | ||
- db | ||
|
||
db: | ||
image: docker.io/library/postgres:17 | ||
restart: always | ||
environment: | ||
- POSTGRES_USER=gitea | ||
- POSTGRES_PASSWORD=gitea | ||
- POSTGRES_DB=gitea | ||
networks: | ||
- gitea | ||
volumes: | ||
- ./postgres:/var/lib/postgresql/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters