fix(woodpecker): variables and container names
This commit is contained in:
parent
a53a904c82
commit
c6f3e708ff
@ -1,4 +1,8 @@
|
|||||||
BASE_URL=build.
|
BASE_URL=cicd.
|
||||||
EMAIL=
|
EMAIL=
|
||||||
|
|
||||||
WOODPECKER_AGENT_SECRET= #$(openssl rand -hex 32)
|
WOODPECKER_AGENT_SECRET= #$(openssl rand -hex 32)
|
||||||
|
WOODPECKER_GITEA=true
|
||||||
|
WOODPECKER_GITEA_URL=
|
||||||
|
WOODPECKER_GITEA_CLIENT=
|
||||||
|
WOODPECKER_GITEA_SECRET=
|
||||||
|
@ -12,32 +12,32 @@ services:
|
|||||||
- certbotroot:/var/www/certbot/
|
- certbotroot:/var/www/certbot/
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
||||||
server:
|
woodpecker-server:
|
||||||
image: docker.io/woodpeckerci/woodpecker-server:v2.0.0
|
image: docker.io/woodpeckerci/woodpecker-server:v2.0.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- server-data:/var/lib/woodpecker/
|
- server-data:/var/lib/woodpecker/
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- WOODPECKER_OPEN=true
|
- WOODPECKER_OPEN=true
|
||||||
- WOODPECKER_HOST=$BASE_URL
|
- WOODPECKER_HOST=https://$BASE_URL
|
||||||
- WOODPECKER_GITEA=true
|
|
||||||
- WOODPECKER_AGENT_SECRET
|
|
||||||
networks:
|
networks:
|
||||||
- nginx
|
- nginx
|
||||||
- default
|
- default
|
||||||
|
|
||||||
agent:
|
woodpecker-agent:
|
||||||
image: docker.io/woodpeckerci/woodpecker-agent:v2.0.0
|
image: docker.io/woodpeckerci/woodpecker-agent:v2.0.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: agent
|
command: agent
|
||||||
volumes:
|
volumes:
|
||||||
- agent-config:/etc/woodpecker
|
- agent-config:/etc/woodpecker/
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
- WOODPECKER_SERVER=server:9000
|
- WOODPECKER_SERVER=woodpecker-server:9000
|
||||||
- WOODPECKER_AGENT_SECRET
|
- WOODPECKER_AGENT_SECRET
|
||||||
depends_on:
|
depends_on:
|
||||||
- server
|
- woodpecker-server
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -16,7 +16,7 @@ server {
|
|||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://woodpecker:8000;
|
proxy_pass http://woodpecker-server:8000;
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
Loading…
Reference in New Issue
Block a user