Skip to content

Instantly share code, notes, and snippets.

@dkirrane
Last active September 7, 2020 04:27
Show Gist options
  • Save dkirrane/1fcfbabe1c04ca713e03a6781f7f99fc to your computer and use it in GitHub Desktop.
Save dkirrane/1fcfbabe1c04ca713e03a6781f7f99fc to your computer and use it in GitHub Desktop.
GoCD docker-compose.yml
# https://hub.docker.com/r/gocd/gocd-server/
server:
image: gocd/gocd-server:v17.10.0
hostname: go-server # Needed so the go-agent can find the server
ports:
- '8153:8153'
- '8154:8154'
environment:
- GO_SERVER_SYSTEM_PROPERTIES='-Dgo.plugin.upload.enabled=true'
# https://hub.docker.com/r/gocd/gocd-agent-alpine-3.5/
agent:
image: gocd/gocd-agent-alpine-3.5:v17.10.0
links:
- server
environment:
- GO_SERVER_URL=https://localhost:8154/go
# https://docs.gocd.org/current/advanced_usage/agent_auto_register.html
#- AGENT_AUTO_REGISTER_KEY:
#- AGENT_AUTO_REGISTER_RESOURCES:
#- AGENT_AUTO_REGISTER_ENVIRONMENTS:
#- AGENT_AUTO_REGISTER_HOSTNAME: agent1