-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml.template
100 lines (91 loc) · 2.38 KB
/
docker-compose.yml.template
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3'
services:
buildbot:
build: GBuildbot-master
env_file: db.env
environment:
- BUILDBOT_CONFIG_DIR=config
- BUILDBOT_CONFIG_URL=https://github.com/GKernelCI/GBuildbot/archive/master.tar.gz
- BUILDBOT_WORKER_PORT=9989
- BUILDBOT_WEB_URL=https://kernel1.amd64.dev.gentoo.org
- WWW_AUTH_USER=web_auth_user
- WWW_AUTH_PASWD=web_auth_password
- GKERNELCI_URL=https://kernel1.amd64.dev.gentoo.org/
- GKERNELCI_TITLE_URL=https://wiki.gentoo.org/wiki/Project:Kernel
- GKERNELCI_TITLE=Gentoo Kernel
- GHELPER_REPOURL=https://github.com/GKernelCI/Ghelper.git
- GHELPER_BRANCH=master
- MAIL_PASSWORD=mail_password
- WORKER_NAME=worker_name
- WORKER_PASSWORD=worker_pass
- IRC_HOST=irc_host
- IRC_CHANNELS=irc_channels
- IRC_NICK=irc_nick
- WEB_AUTHS=web_auth_user:web_auth_password
- WORKERS=kernelci:pass
- BUILDBOT_STATUS_TOKEN=gentoo_webhook
- TCP_PORTS=8010,9989
depends_on:
- db
links:
- db
ports:
- 8010:8010
expose:
- 9989
networks:
- gkernelci-net
db:
image: "postgres:11.4-alpine"
env_file: db.env
expose:
- 5432
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- gkernelci-net
worker:
build:
context: ./GBuildbot-worker
args:
LAVA_SERVER: lava_server:lava_port
LAVA_TOKEN: lava_token
LAVA_USER: lava_user
DOCKER_GID: your local docker GID
environment:
BUILDMASTER: master_ip
BUILDMASTER_PORT: master_port
WORKERNAME: worker_name
WORKERPASS: worker_pass
WORKER_ENVIRONMENT_BLACKLIST: DOCKER_BUILDBOT* BUILDBOT_ENV_* BUILDBOT_1* WORKER_ENVIRONMENT_BLACKLIST
volumes:
- fileserver:/var/www/fileserver
- worker_data:/buildbot
- /var/run/docker.sock:/var/run/docker.sock
networks:
- gkernelci-net
fileserver:
build:
context: ./Gfileserver/web/
ports:
- 8080:8080
volumes:
- fileserver:/var/www/static
networks:
- gkernelci-net
cron:
build:
context: ./Gfileserver/cron/
volumes:
- fileserver:/var/www/static
restart: always
volumes:
db:
certs:
vhost.d:
html:
postgres_data:
fileserver:
worker_data:
networks:
gkernelci-net: