This commit is contained in:
sf 2022-01-02 17:13:48 +01:00
parent f68da7030d
commit 0faffa0bbd
4 changed files with 41 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
worker.env

4
db.env.dist Normal file
View File

@ -0,0 +1,4 @@
POSTGRES_PASSWORD=buildbot
POSTGRES_USER=buildbot
POSTGRES_DB=buildbot
BUILDBOT_DB_URL=postgresql+psycopg2://{POSTGRES_USER}:{POSTGRES_PASSWORD}@db/{POSTGRES_DB}

35
docker-compose.yml Normal file
View File

@ -0,0 +1,35 @@
version: '2'
services:
buildbot:
image: "buildbot/buildbot-master:master"
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:8010/
- BUILDBOT_WEB_PORT=tcp:port=8010
links:
- db
depends_on:
- db
ports:
- "${MASTER_EXTERNAL_IP}:8010:8010"
db:
env_file:
- db.env
image: "postgres:9.4"
worker:
image: "buildbot/buildbot-worker:master"
environment:
BUILDMASTER: buildbot
BUILDMASTER_PORT: 9989
WORKERNAME: worker
WORKERPASS: pass
WORKER_ENVIRONMENT_BLACKLIST: DOCKER_BUILDBOT* BUILDBOT_ENV_* BUILDBOT_1* WORKER_ENVIRONMENT_BLACKLIST
links:
- buildbot

1
env.dist Normal file
View File

@ -0,0 +1 @@
MASTER_EXTERNAL_IP=127.0.0.1