fix: woodpecker

This commit is contained in:
sauravdhakal12
2026-04-01 15:23:05 +00:00
parent b2bfdb0064
commit 457ec43c8a
3 changed files with 30 additions and 18 deletions

View File

@@ -86,20 +86,20 @@ ci.sauravdhakal.com.np {
} }
# Your site — public, with caching # Your site — public, with caching
# sauravdhakal.com.np { sauravdhakal.com.np {
# root * /home/saurav/site/public root * /home/saurav/site/public
#
# # This is where you learn caching # This is where you learn caching
# header Cache-Control "public, max-age=3600" # cache 1 hour by default header Cache-Control "public, max-age=3600" # cache 1 hour by default
# header /static/* Cache-Control "public, max-age=31536000, immutable" # assets forever header /static/* Cache-Control "public, max-age=31536000, immutable" # assets forever
#
# file_server file_server
# encode gzip encode gzip
# } }
# dozzle.sauravdhakal.com.np { dozzle.sauravdhakal.com.np {
# bind 100.81.85.182 bind 100.81.85.182
# reverse_proxy localhost:8888 reverse_proxy localhost:8888
# } }
# #
# glances.sauravdhakal.com.np { # glances.sauravdhakal.com.np {
# bind 100.81.85.182 # bind 100.81.85.182

View File

@@ -2,7 +2,6 @@ services:
gitea: gitea:
image: gitea/gitea:latest image: gitea/gitea:latest
restart: unless-stopped restart: unless-stopped
user: "1000:1000"
ports: ports:
- "127.0.0.1:3000:3000" - "127.0.0.1:3000:3000"
- "2222:22" # git ssh — different port to avoid conflict - "2222:22" # git ssh — different port to avoid conflict

View File

@@ -1,11 +1,13 @@
services: services:
woodpecker-server: woodpecker-server:
image: woodpeckerci/woodpecker-server:latest image: woodpeckerci/woodpecker-server:v3
restart: unless-stopped restart: unless-stopped
ports: ports:
- "127.0.0.1:8000:8000" - "127.0.0.1:8000:8000"
- "127.0.0.1:9001:9000" # changed to 9001
environment: environment:
- WOODPECKER_OPEN=false - WOODPECKER_OPEN=false
- WOODPECKER_ADMIN=saurav12 # your Gitea username
- WOODPECKER_GITEA=true - WOODPECKER_GITEA=true
- WOODPECKER_GITEA_URL=https://gitea.sauravdhakal.com.np - WOODPECKER_GITEA_URL=https://gitea.sauravdhakal.com.np
- WOODPECKER_GITEA_CLIENT=${WOODPECKER_GITEA_CLIENT} - WOODPECKER_GITEA_CLIENT=${WOODPECKER_GITEA_CLIENT}
@@ -14,12 +16,23 @@ services:
- WOODPECKER_HOST=https://ci.sauravdhakal.com.np - WOODPECKER_HOST=https://ci.sauravdhakal.com.np
volumes: volumes:
- /home/saurav/hetzner_self/data/woodpecker:/var/lib/woodpecker - /home/saurav/hetzner_self/data/woodpecker:/var/lib/woodpecker
networks:
- woodpecker_internal
woodpecker-agent: woodpecker-agent:
image: woodpeckerci/woodpecker-agent:latest image: woodpeckerci/woodpecker-agent:v3
restart: unless-stopped restart: unless-stopped
environment: environment:
- WOODPECKER_SERVER=woodpecker-server:9000 - WOODPECKER_SERVER=woodpecker-server:9000
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock # agent runs hugo in docker - /var/run/docker.sock:/var/run/docker.sock
- /home/saurav/hetzner_self/data/woodpecker-agent:/etc/woodpecker
networks:
- woodpecker_internal
depends_on:
- woodpecker-server
networks:
woodpecker_internal:
driver: bridge