Last active
December 5, 2019 22:08
-
-
Save wtnb75/a273b8c03131fe8a7b561a2177a11406 to your computer and use it in GitHub Desktop.
gogs + drone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
gogs: | |
container_name: gogs | |
image: gogs/gogs | |
ports: | |
- 3000:3000 | |
volumes: | |
- ./gogs:/data | |
drone-server: | |
container_name: drone | |
image: drone/drone | |
ports: | |
- 8000:80 | |
volumes: | |
- ./drone:/var/lib/drone/ | |
restart: always | |
environment: | |
- DRONE_GOGS_SERVER=http://gogs:3000 | |
- DRONE_RPC_SECRET=${DRONE_SECRET} | |
- DRONE_SERVER_HOST=gogs | |
drone-agent: | |
container_name: agent | |
image: drone/drone-runner-docker | |
command: agent | |
restart: always | |
depends_on: [ drone-server ] | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
environment: | |
- DRONE_RPC_HOST=drone-server | |
- DRONE_RPC_SECRET=${DRONE_SECRET} |
@mrinalwahal same story here. Were you able to resolve this by any chance?
@mrinalwahal @rs-ds sorry! I didn't notice the notification long time.
I fixed it to follow the image update.
- export DRONE_SECRET=$(uuidgen)
- docker-compose up
- open http://localhost:3000 (gogs)
- open http://localhost:8000 (drone)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried the above script. While I can access GOGS at
localhost:3000
, I can't access Drone atlocalhost:8000
orlocalhost:80
.I get the following error with
docker logs drone
:{"level":"fatal","msg":"main: source code management system not configured","time":"2019-05-18T14:10:15Z"}