test sh tag on code block
All checks were successful
deploy-docs / build-and-deploy (push) Successful in 39s
All checks were successful
deploy-docs / build-and-deploy (push) Successful in 39s
This commit is contained in:
@@ -60,6 +60,99 @@ If you are looking for a "no-nonsense" Git hosting solution that feels like GitH
|
||||
{{<include "/srv/configs/docker_compose/gitea/docker-compose.yaml">}}
|
||||
```
|
||||
|
||||
```sh
|
||||
################################################################################
|
||||
# gitea -- https://docs.gitea.com/installation/install-with-docker
|
||||
################################################################################
|
||||
|
||||
networks:
|
||||
gitea_net:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
# --- Gitea ---
|
||||
server:
|
||||
image: docker.gitea.com/gitea:1.25.4
|
||||
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_net
|
||||
volumes:
|
||||
- "${GITEA_HOME}/data:/data"
|
||||
- "/etc/timezone:/etc/timezone:ro"
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
ports:
|
||||
- "3001:3000"
|
||||
- "222:22"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
# --- Gitea postgres db ---
|
||||
db:
|
||||
image: docker.io/library/postgres:14
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=gitea
|
||||
- POSTGRES_DB=gitea
|
||||
networks:
|
||||
- gitea_net
|
||||
volumes:
|
||||
- "${GITEA_HOME}/postgres:/var/lib/postgresql/data"
|
||||
|
||||
# --- Gitea Actions Runner ---
|
||||
runner:
|
||||
image: gitea/act_runner:latest
|
||||
container_name: gitea_runner
|
||||
restart: always
|
||||
environment:
|
||||
- GITEA_INSTANCE_URL=https://git.wompmacho.com
|
||||
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN}
|
||||
- GITEA_RUNNER_NAME=gitea-runner-01
|
||||
- CONFIG_FILE=/data/config.yaml
|
||||
volumes:
|
||||
- "${GITEA_HOME}/runner:/data"
|
||||
- "/srv/www:/deploy"
|
||||
- "/srv/configs:/assets"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
networks:
|
||||
- gitea_net
|
||||
depends_on:
|
||||
- server
|
||||
|
||||
# --- Nginx Web Server (Public) ---
|
||||
docs-public:
|
||||
image: nginx:alpine
|
||||
container_name: docs-public
|
||||
restart: always
|
||||
ports:
|
||||
- "9895:80"
|
||||
volumes:
|
||||
- "/srv/www/docs-public:/usr/share/nginx/html:ro"
|
||||
networks:
|
||||
- gitea_net
|
||||
|
||||
# --- Nginx Web Server (Private) ---
|
||||
docs-private:
|
||||
image: nginx:alpine
|
||||
container_name: docs-private
|
||||
restart: always
|
||||
ports:
|
||||
- "9897:80"
|
||||
volumes:
|
||||
- "/srv/www/docs-private:/usr/share/nginx/html:ro"
|
||||
networks:
|
||||
- gitea_net
|
||||
```
|
||||
|
||||
## setup
|
||||
|
||||
todo
|
||||
|
||||
Reference in New Issue
Block a user