Skip to content

Instantly share code, notes, and snippets.

@wtnb75
Last active December 5, 2019 22:08
Show Gist options
  • Save wtnb75/a273b8c03131fe8a7b561a2177a11406 to your computer and use it in GitHub Desktop.
Save wtnb75/a273b8c03131fe8a7b561a2177a11406 to your computer and use it in GitHub Desktop.
gogs + drone
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
Copy link

mrinalwahal commented May 18, 2019

I tried the above script. While I can access GOGS at localhost:3000, I can't access Drone at localhost:8000 or localhost: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"}

@rs-ds
Copy link

rs-ds commented Nov 27, 2019

@mrinalwahal same story here. Were you able to resolve this by any chance?

@wtnb75
Copy link
Author

wtnb75 commented Nov 28, 2019

@mrinalwahal @rs-ds sorry! I didn't notice the notification long time.

I fixed it to follow the image update.

@wtnb75
Copy link
Author

wtnb75 commented Nov 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment