Hello, I am attempting to add a agent for Drone CI.
The following error was prompted when I deployed according to the documentation
{"level":"fatal","msg":"main: source code management system not configured","time":"2019-04-13T14:52:40Z"}
I refer to this document gitea/multi-machine 1.0.0
I don’t know what I configured wrong, but here’s my configuration
# master
drone-server:
image: drone/drone:1
container_name: drone-server
volumes:
- /srv/docker/drone:/data
environment:
- DRONE_GIT_ALWAYS_AUTH=false
- DRONE_GITEA_SERVER=https://code.xxxx
- DRONE_RPC_SECRET=9c3921e3e748aff725d2e16ef31fbc42
- DRONE_SERVER_HOST=ci.xxxx
- DRONE_SERVER_PORT=:8000
- DRONE_SERVER_PROTO=https
- DRONE_TLS_AUTOCERT=false
- DRONE_AGENTS_ENABLED=true
- DRONE_USER_CREATE=username:ceshi,admin:true
- DRONE_RUNNER_CAPACITY=2
network_mode: host
restart: always
# worker
drone-agent:
image: drone/drone:1
container_name: drone-agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_SERVER=https://ci.xxxx
- DRONE_RPC_SECRET=9c3921e3e748aff725d2e16ef31fbc42
- DRONE_LOGS_DEBUG=true
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=${HOSTNAME}
restart: always
Thank you for reading, who can help me?