-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (75 loc) · 2.05 KB
/
docker-compose.yml
File metadata and controls
80 lines (75 loc) · 2.05 KB
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
services:
db:
image: postgres:15-alpine
volumes:
- db-data:/var/lib/postgresql/data
secrets:
- db_password.txt
environment:
POSTGRES_DB: buildbot
POSTGRES_USER: buildbot
POSTGRES_PASSWORD_FILE: /run/secrets/db_password.txt
logging:
driver: local
restart: unless-stopped
buildbot:
build:
context: .
dockerfile: master/Dockerfile
depends_on:
- db
ports:
- "9990:9990"
secrets:
- db_password.txt
- github_token.txt
- halide_bb_pass.txt
- webhook_token.txt
- buildbot_www_pass.txt
environment:
HALIDE_BB_MASTER_SECRETS_DIR: /run/secrets
HALIDE_BB_MASTER_DB_URL: "postgresql://buildbot:{DB_PASSWORD}@db/buildbot"
logging:
driver: local
restart: unless-stopped
pypi:
image: pypiserver/pypiserver:v2.4.0
volumes:
- ${HALIDE_BB_PYPI_PACKAGES_DIR:-./data/packages}:/data/packages
secrets:
- pypi_htpasswd.txt
command: run -P /run/secrets/pypi_htpasswd.txt -a update --backend cached-dir /data/packages
logging:
driver: local
restart: unless-stopped
caddy:
image: caddy:2-alpine
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./master/maintenance.html:/srv/maintenance.html:ro
- caddy-data:/data
- caddy-config:/config
logging:
driver: local
restart: unless-stopped
volumes:
caddy-data:
caddy-config:
db-data:
secrets:
db_password.txt:
file: ${HALIDE_BB_MASTER_SECRETS_DIR:-./secrets}/db_password.txt
github_token.txt:
file: ${HALIDE_BB_MASTER_SECRETS_DIR:-./secrets}/github_token.txt
halide_bb_pass.txt:
file: ${HALIDE_BB_MASTER_SECRETS_DIR:-./secrets}/halide_bb_pass.txt
webhook_token.txt:
file: ${HALIDE_BB_MASTER_SECRETS_DIR:-./secrets}/webhook_token.txt
buildbot_www_pass.txt:
file: ${HALIDE_BB_MASTER_SECRETS_DIR:-./secrets}/buildbot_www_pass.txt
pypi_htpasswd.txt:
file: ${HALIDE_BB_MASTER_SECRETS_DIR:-./secrets}/pypi_htpasswd.txt