我正在努力让DroneCI启动并运行,使用下面(已消毒的)docker-compose.yaml。
(请参阅底部链接以获取docker-compose up执行的输出)。
…
您的docker-compose文件(至少)有两个问题:
1)你有 volumes: 在无人机服务器的配置中两次部分,合并并将两个卷映射放在同一部分中
volumes:
2)在无人机代理配置中,无人机服务器的URL错误,不应包括 http:// 计划,它错过了端口,试试 DRONE_SERVER=drone-server:9000
http://
DRONE_SERVER=drone-server:9000
docker-compose.yml
# Docker compose file syntax: version: '2' services: drone-server: image: drone/drone:0.8 ports: - 5124:8000 - 5125:9000 volumes: - '/var/lib/drone:/var/lib/drone/:Z' - '/etc/bitbucket/key.pem:/etc/bitbucket/key.pem:Z' restart: always environment: - DRONE_OPEN=true - DRONE_HOST=http://drone.COMPANY.intra:80 - DRONE_STASH=true - DRONE_STASH_GIT_USERNAME=USERNAME - DRONE_STASH_GIT_PASSWORD=PASSWORD - DRONE_STASH_CONSUMER_KEY=CONSUMER_KEY - DRONE_STASH_CONSUMER_RSA=/etc/bitbucket/key.pem - DRONE_STASH_URL=https://COMPANY_URL.intra - DRONE_SECRET=SECRET1 drone-agent: image: drone/agent:0.8 restart: always depends_on: - drone-server volumes: - /var/run/docker.sock:/var/run/docker.sock:Z environment: - DRONE_SERVER=drone-server:9000 - DRONE_SECRET=SECRET1