1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
version: '2'
services:
lb:
image: dockercloud/haproxy
links:
- buildbot
volumes:
- /var/run/docker.sock:/var/run/docker.sock
expose:
- 8080
- 9989
ports:
- 8080:8080
- 9989:9989 # for external workers
buildbot:
image: buildbot/buildbot-master:latest
env_file: db.env
environment:
- BUILDBOT_CONFIG_DIR=config
- BUILDBOT_CONFIG_URL=https://github.com/buildbot/buildbot-docker-example-config/archive/master.tar.gz
- BUILDBOT_WORKER_PORT=9989
- BUILDBOT_WEB_URL=http://localhost:8080/
- BUILDBOT_WEB_PORT=8080
- BUILDBOT_MQ_URL=ws://mq:8080/ws
- BUILDBOT_MQ_DEBUG=true
- BUILDBOT_MQ_REALM=realm1
- TCP_PORTS=8080,9989
links:
- db
expose:
- 8080
- 9989
db:
image: "postgres:9.4"
env_file: db.env
expose:
- 5432
mq:
image: "crossbario/crossbar"
env_file: db.env
expose:
- 8080
worker:
image: "buildbot/buildbot-worker:master"
environment:
BUILDMASTER: lb
BUILDMASTER_PORT: 9989
WORKERNAME: example-worker
WORKERPASS: pass
WORKER_ENVIRONMENT_BLACKLIST: DOCKER_BUILDBOT* BUILDBOT_ENV_* BUILDBOT_1* WORKER_ENVIRONMENT_BLACKLIST
links:
- lb
|