42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
version: "3.8"
|
|
|
|
volumes:
|
|
drone-server:
|
|
name: ${DRONE_SERVER_VOLUME_NAME}
|
|
|
|
services:
|
|
drone-server:
|
|
container_name: ${DRONE_SERVER_CONTAINER_NAME}
|
|
image: ${DRONE_SERVER_IMAGE}
|
|
restart: always
|
|
environment:
|
|
DRONE_GIT_ALWAYS_AUTH: ${DRONE_GIT_ALWAYS_AUTH}
|
|
DRONE_RPC_SECRET: ${DRONE_RPC_SECRET}
|
|
DRONE_SERVER_HOST: ${DRONE_SERVER_HOST}
|
|
DRONE_SERVER_PROTO: ${DRONE_SERVER_PROTO}
|
|
DRONE_LOGS_DEBUG: 'true'
|
|
volumes:
|
|
- drone-server:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
drone-runner:
|
|
container_name: ${DRONE_RUNNER_CONTAINER_NAME}
|
|
image: ${DRONE_RUNNER_IMAGE}
|
|
restart: always
|
|
depends_on:
|
|
- drone-server
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
DRONE_RPC_PROTO: http
|
|
DRONE_RPC_HOST: ${DRONE_SERVER_CONTAINER_NAME}
|
|
DRONE_RPC_SECRET: ${DRONE_RPC_SECRET}
|
|
DRONE_RUNNER_CAPACITY: ${DRONE_RUNNER_CAPACITY}
|
|
DRONE_RUNNER_NAME: ${DRONE_RUNNER_NAME}
|
|
DRONE_UI_USERNAME: ${DRONE_RUNNER_UI_USERNAME}
|
|
DRONE_UI_PASSWORD: ${DRONE_RUNNER_UI_PASSWORD}
|
|
DRONE_DEBUG: 'true'
|