40 lines
938 B
YAML
40 lines
938 B
YAML
version: "2.1"
|
|
|
|
services:
|
|
server:
|
|
image: drone/drone:latest
|
|
environment:
|
|
- DRONE_GITEA_SERVER=https://git.bbaovanc.com
|
|
- DRONE_GITEA_CLIENT_ID
|
|
- DRONE_GITEA_CLIENT_SECRET
|
|
- DRONE_RPC_SECRET
|
|
- DRONE_SERVER_HOST=drone.bbaovanc.com
|
|
- DRONE_SERVER_PROTO=https
|
|
- DRONE_GIT_ALWAYS_AUTH=true
|
|
- DRONE_USER_FILTER=bbaovanc
|
|
- DRONE_LOGS_TEXT=true
|
|
- DRONE_LOGS_PRETTY=true
|
|
- DRONE_LOGS_COLOR=true
|
|
volumes:
|
|
- ./data:/data
|
|
restart: always
|
|
ports:
|
|
- 8080:80
|
|
- 8443:443
|
|
|
|
runner:
|
|
image: drone/drone-runner-docker:latest
|
|
environment:
|
|
- DRONE_RPC_PROTO=https
|
|
- DRONE_RPC_HOST=drone.bbaovanc.com
|
|
- DRONE_RPC_SECRET
|
|
- DRONE_RUNNER_CAPACITY=2
|
|
- DRONE_RUNNER_NAME=bbaosrv
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
restart: always
|
|
ports:
|
|
- 3002:3000
|
|
depends_on:
|
|
- server
|