Updated woodpecker config

woodpecker
Jef Roosens 2021-04-24 00:45:09 +02:00
parent d554373c5d
commit 0d8408f446
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
2 changed files with 4 additions and 8 deletions

View File

@ -2,6 +2,8 @@
DRONE_OPEN=true
# Drone needs to know its own location
DRONE_HOST=
# The same, but without the https in front of it
DRONE_SERVER=
# Shared secret to communicate with agents
DRONE_SECRET=

View File

@ -10,12 +10,6 @@ services:
depends_on:
db:
condition: 'service_healthy'
healthcheck:
test: 'curl -f http://localhost:8000/ || exit 1'
interval: '30s'
retries: 3
timeout: '5s'
start_period: '10s'
env_file:
- '.env'
@ -50,7 +44,7 @@ services:
# We can deploy more agents by using the scale command
# Each agent can do one parallel build by default
agent:
image: 'laszlocloud/woodpecker-server:v0.12.0'
image: 'laszlocloud/woodpecker-agent:v0.12.0'
restart: 'always'
command: 'agent'
@ -59,7 +53,7 @@ services:
condition: 'service_healthy'
environment:
- 'DRONE_SERVER=${DRONE_HOST}'
- 'DRONE_SERVER=${DRONE_SERVER}'
- 'DRONE_SECRET=${DRONE_SECRET}'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'