Updated woodpecker config
parent
d554373c5d
commit
0d8408f446
|
@ -2,6 +2,8 @@
|
||||||
DRONE_OPEN=true
|
DRONE_OPEN=true
|
||||||
# Drone needs to know its own location
|
# Drone needs to know its own location
|
||||||
DRONE_HOST=
|
DRONE_HOST=
|
||||||
|
# The same, but without the https in front of it
|
||||||
|
DRONE_SERVER=
|
||||||
# Shared secret to communicate with agents
|
# Shared secret to communicate with agents
|
||||||
DRONE_SECRET=
|
DRONE_SECRET=
|
||||||
|
|
||||||
|
|
|
@ -10,12 +10,6 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: 'service_healthy'
|
condition: 'service_healthy'
|
||||||
healthcheck:
|
|
||||||
test: 'curl -f http://localhost:8000/ || exit 1'
|
|
||||||
interval: '30s'
|
|
||||||
retries: 3
|
|
||||||
timeout: '5s'
|
|
||||||
start_period: '10s'
|
|
||||||
|
|
||||||
env_file:
|
env_file:
|
||||||
- '.env'
|
- '.env'
|
||||||
|
@ -50,7 +44,7 @@ services:
|
||||||
# We can deploy more agents by using the scale command
|
# We can deploy more agents by using the scale command
|
||||||
# Each agent can do one parallel build by default
|
# Each agent can do one parallel build by default
|
||||||
agent:
|
agent:
|
||||||
image: 'laszlocloud/woodpecker-server:v0.12.0'
|
image: 'laszlocloud/woodpecker-agent:v0.12.0'
|
||||||
restart: 'always'
|
restart: 'always'
|
||||||
command: 'agent'
|
command: 'agent'
|
||||||
|
|
||||||
|
@ -59,7 +53,7 @@ services:
|
||||||
condition: 'service_healthy'
|
condition: 'service_healthy'
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- 'DRONE_SERVER=${DRONE_HOST}'
|
- 'DRONE_SERVER=${DRONE_SERVER}'
|
||||||
- 'DRONE_SECRET=${DRONE_SECRET}'
|
- 'DRONE_SECRET=${DRONE_SECRET}'
|
||||||
volumes:
|
volumes:
|
||||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||||
|
|
Reference in New Issue