39 lines
893 B
YAML
39 lines
893 B
YAML
version: '2'
|
|
services:
|
|
master:
|
|
image: "buildbot/buildbot-master:${BUILDBOT_VERSION}"
|
|
env_file:
|
|
- .env
|
|
- db.env
|
|
environment:
|
|
- BUILDBOT_CONFIG_DIR=config
|
|
- BUILDBOT_WORKER_PORT=9989
|
|
- BUILDBOT_WEB_PORT=tcp:port=8010
|
|
links:
|
|
- db
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- "${MASTER_CONFIG_PATH}:/buildbot/:rw"
|
|
ports:
|
|
- "${MASTER_EXTERNAL_IP}:8010:8010"
|
|
- "${MASTER_EXTERNAL_IP}:9989:9989"
|
|
|
|
db:
|
|
env_file:
|
|
- db.env
|
|
image: "postgres:9.4"
|
|
|
|
worker:
|
|
image: "buildbot/buildbot-worker:${BUILDBOT_VERSION}"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
BUILDMASTER: master
|
|
BUILDMASTER_PORT: 9989
|
|
WORKERNAME: worker
|
|
WORKERPASS: "${WORKER_PASSWORD}"
|
|
WORKER_ENVIRONMENT_BLACKLIST: DOCKER_BUILDBOT* BUILDBOT_ENV_* BUILDBOT_1* WORKER_ENVIRONMENT_BLACKLIST
|
|
links:
|
|
- master
|