WebsiteBench / tasks /change /environment /docker-compose.yaml
AgPerry's picture
Add files using upload-large-folder tool
2d5835d verified
Raw History Blame Contribute Delete
4.95 kB
services:
main:
depends_on:
reference:
condition: service_healthy
browser:
condition: service_healthy
mailbox:
condition: service_healthy
environment:
WEBSITEBENCH_REFERENCE_URL: https://reference:8080
WEBSITEBENCH_CANDIDATE_URL: http://127.0.0.1:3000
PORT: '3000'
DATA_DIR: /tmp/websitebench-data
WEBSITEBENCH_AGENT_EMAIL: agent@change.websitebench.test
WEBSITEBENCH_MAILBOX_INBOX_URL: http://mailbox:8026
network_mode: service:harbor-docker-egress-control-sidecar
volumes:
- websitebench-browser-share:/browser-share
reference:
build:
context: ./reference
environment:
PORT: '8080'
WEBSITEBENCH_SMTP_HOST: mailbox-internal
WEBSITEBENCH_SMTP_PORT: '1025'
WEBSITEBENCH_MAILBOX_BOOTSTRAP_URL: http://mailbox-internal:8025/internal/bootstrap
WEBSITEBENCH_MAILBOX_BOOTSTRAP_TOKEN: 1be8b693c548a913c34cddd373a7b7b1648db9a75d23f20ac1da18ea749aadae
WEBSITEBENCH_MAIL_API_URL: http://mailbox-internal:8025/emails
WEBSITEBENCH_MAIL_API_TOKEN: 1be8b693c548a913c34cddd373a7b7b1648db9a75d23f20ac1da18ea749aadae
WEBSITEBENCH_MAIL_FROM: no-reply@change.websitebench.local
networks:
- websitebench-reference
- websitebench-mail
depends_on:
mailbox:
condition: service_healthy
harbor-docker-egress-control-sidecar:
image: alpine:3.23.4@sha256:5b10f432ef3da1b8d4c7eb6c487f2f5a8f096bc91145e68878dd4a5019afde11
entrypoint:
- /bin/sh
- -c
- while true; do sleep 3600; done
networks:
websitebench-agent-egress: {}
websitebench-browser-control:
aliases:
- candidate
browser:
build:
context: .
command:
- python
- /opt/websitebench/agent-browser/gateway.py
environment:
WEBSITEBENCH_BROWSER_REFERENCE_URL: https://reference:8080
WEBSITEBENCH_BROWSER_CANDIDATE_URL: http://candidate:3000
WEBSITEBENCH_BROWSER_MAILBOX_URL: http://mailbox:8026
WEBSITEBENCH_BROWSER_GATEWAY_BIND: 0.0.0.0
healthcheck:
test:
- CMD
- python
- -c
- import urllib.request as r;r.urlopen('http://127.0.0.1:9224/healthz',timeout=1)
interval: 2s
timeout: 2s
retries: 30
networks:
- websitebench-browser-control
- websitebench-reference
volumes:
- websitebench-browser-share:/browser-share
mailbox:
build:
context: ./mailbox
depends_on:
mailpit:
condition: service_healthy
environment:
PYTHONDONTWRITEBYTECODE: '1'
WEBSITEBENCH_MAILBOX_BOOTSTRAP_TOKEN: 1be8b693c548a913c34cddd373a7b7b1648db9a75d23f20ac1da18ea749aadae
WEBSITEBENCH_MAIL_API_URL: http://mailbox-internal:8025/emails
WEBSITEBENCH_MAIL_API_TOKEN: 1be8b693c548a913c34cddd373a7b7b1648db9a75d23f20ac1da18ea749aadae
WEBSITEBENCH_MAIL_FROM: no-reply@change.websitebench.local
WEBSITEBENCH_MAILPIT_HTTP_SOCKET: /run/websitebench-mailpit/http.sock
WEBSITEBENCH_MAILBOX_SMTP_ADVERTISE_HOST: mailbox-internal
WEBSITEBENCH_MAILBOX_INBOX_BIND: 10.161.97.90
WEBSITEBENCH_MAILBOX_API_BIND: 10.161.97.122
networks:
websitebench-browser-control:
ipv4_address: 10.161.97.90
aliases:
- mailbox
websitebench-mail:
ipv4_address: 10.161.97.122
aliases:
- mailbox-internal
volumes:
- websitebench-mailpit-runtime:/run/websitebench-mailpit
mailpit:
image: ghcr.io/axllent/mailpit:v1.30.6@sha256:7f33095f80e901f6ad08028f06ca284aa58fe84942be5496008d041d3b9f4d4d
network_mode: none
environment:
MP_UI_BIND_ADDR: unix:/run/websitebench-mailpit/http.sock:660
MP_SMTP_BIND_ADDR: unix:/run/websitebench-mailpit/smtp.sock:660
MP_DATABASE: /tmp/mailpit.db
MP_MAX_MESSAGES: '512'
MP_MAX_MESSAGE_SIZE: '1'
MP_SMTP_MAX_RECIPIENTS: '16'
MP_DISABLE_VERSION_CHECK: 'true'
MP_ALLOW_INTERNAL_HTTP_REQUESTS: 'false'
MP_BLOCK_REMOTE_CSS_AND_FONTS: 'true'
MP_POP3_BIND_ADDR: ''
MP_SMTP_RELAY_ALL: 'false'
MP_ENABLE_CHAOS: 'false'
MP_ENABLE_PROMETHEUS: 'false'
healthcheck:
test:
- CMD
- /bin/sh
- -ec
- test -S /run/websitebench-mailpit/http.sock; test -S /run/websitebench-mailpit/smtp.sock
interval: 2s
timeout: 2s
retries: 30
tmpfs:
- /tmp
volumes:
- websitebench-mailpit-runtime:/run/websitebench-mailpit
networks:
websitebench-agent-egress:
ipam:
config:
- subnet: 10.161.97.64/28
websitebench-browser-control:
internal: true
ipam:
config:
- subnet: 10.161.97.80/28
websitebench-reference:
internal: true
ipam:
config:
- subnet: 10.161.97.96/28
websitebench-mail:
internal: true
ipam:
config:
- subnet: 10.161.97.112/28
volumes:
websitebench-browser-share: {}
websitebench-mailpit-runtime: {}