fix: woodpecker
This commit is contained in:
@@ -86,20 +86,20 @@ ci.sauravdhakal.com.np {
|
||||
}
|
||||
|
||||
# Your site — public, with caching
|
||||
# sauravdhakal.com.np {
|
||||
# root * /home/saurav/site/public
|
||||
#
|
||||
# # This is where you learn caching
|
||||
# header Cache-Control "public, max-age=3600" # cache 1 hour by default
|
||||
# header /static/* Cache-Control "public, max-age=31536000, immutable" # assets forever
|
||||
#
|
||||
# file_server
|
||||
# encode gzip
|
||||
# }
|
||||
# dozzle.sauravdhakal.com.np {
|
||||
# bind 100.81.85.182
|
||||
# reverse_proxy localhost:8888
|
||||
# }
|
||||
sauravdhakal.com.np {
|
||||
root * /home/saurav/site/public
|
||||
|
||||
# This is where you learn caching
|
||||
header Cache-Control "public, max-age=3600" # cache 1 hour by default
|
||||
header /static/* Cache-Control "public, max-age=31536000, immutable" # assets forever
|
||||
|
||||
file_server
|
||||
encode gzip
|
||||
}
|
||||
dozzle.sauravdhakal.com.np {
|
||||
bind 100.81.85.182
|
||||
reverse_proxy localhost:8888
|
||||
}
|
||||
#
|
||||
# glances.sauravdhakal.com.np {
|
||||
# bind 100.81.85.182
|
||||
|
||||
@@ -2,7 +2,6 @@ services:
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
restart: unless-stopped
|
||||
user: "1000:1000"
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
- "2222:22" # git ssh — different port to avoid conflict
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
services:
|
||||
woodpecker-server:
|
||||
image: woodpeckerci/woodpecker-server:latest
|
||||
image: woodpeckerci/woodpecker-server:v3
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:8000:8000"
|
||||
- "127.0.0.1:9001:9000" # changed to 9001
|
||||
environment:
|
||||
- WOODPECKER_OPEN=false
|
||||
- WOODPECKER_ADMIN=saurav12 # your Gitea username
|
||||
- WOODPECKER_GITEA=true
|
||||
- WOODPECKER_GITEA_URL=https://gitea.sauravdhakal.com.np
|
||||
- WOODPECKER_GITEA_CLIENT=${WOODPECKER_GITEA_CLIENT}
|
||||
@@ -14,12 +16,23 @@ services:
|
||||
- WOODPECKER_HOST=https://ci.sauravdhakal.com.np
|
||||
volumes:
|
||||
- /home/saurav/hetzner_self/data/woodpecker:/var/lib/woodpecker
|
||||
networks:
|
||||
- woodpecker_internal
|
||||
|
||||
woodpecker-agent:
|
||||
image: woodpeckerci/woodpecker-agent:latest
|
||||
image: woodpeckerci/woodpecker-agent:v3
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- WOODPECKER_SERVER=woodpecker-server:9000
|
||||
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user