Updated woodpecker config
							parent
							
								
									d554373c5d
								
							
						
					
					
						commit
						0d8408f446
					
				| 
						 | 
				
			
			@ -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=
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in New Issue