Playwright-Headless-Browser.../deploy/compose.yml

78 lines
2.1 KiB
YAML

services:
postgres:
image: docker.io/library/postgres:16
environment:
POSTGRES_DB: webaccess
POSTGRES_USER: webaccess
POSTGRES_PASSWORD: ${WEBACCESS_POSTGRES_PASSWORD:?WEBACCESS_POSTGRES_PASSWORD must be provided}
volumes:
- "postgres-data:/var/lib/postgresql/data"
healthcheck:
test:
- CMD-SHELL
- pg_isready -U webaccess -d webaccess
interval: 5s
timeout: 3s
retries: 12
start_period: 10s
networks:
- webaccess
searxng:
image: docker.io/searxng/searxng:2025.10.21-a8f3644cd@sha256:4c5024bccf5474d24afc8a85e2e7ebcb6a6c3b148654b5bc13eabfcf55414830
environment:
SEARXNG_SECRET: ${SEARXNG_SECRET:?SEARXNG_SECRET must be provided}
ports:
- "127.0.0.1:28080:8080"
volumes:
- "./searxng/settings.yml:/etc/searxng/settings.yml:ro"
healthcheck:
test:
- CMD
- /usr/bin/wget
- --quiet
- --output-document=/dev/null
- http://127.0.0.1:8080/config
interval: 5s
timeout: 3s
retries: 12
start_period: 10s
networks:
- webaccess
webaccess:
build:
context: ..
image: localhost/webaccess-mcp:compose
environment:
ConnectionStrings__WebCache: Host=postgres;Port=5432;Database=webaccess;Username=webaccess;Password=${WEBACCESS_POSTGRES_PASSWORD:?WEBACCESS_POSTGRES_PASSWORD must be provided}
Search__SearXNG__BaseUrl: http://searxng:8080/
Search__SearXNG__Timeout: "00:00:15"
Search__SearXNG__DefaultEngines__0: google
Search__SearXNG__DefaultEngines__1: brave
Search__SearXNG__DefaultEngines__2: duckduckgo
ports:
- "127.0.0.1:28081:8080"
healthcheck:
test:
- CMD-SHELL
- timeout 3 bash -c '</dev/tcp/127.0.0.1/8080'
interval: 5s
timeout: 3s
retries: 12
start_period: 20s
depends_on:
postgres:
condition: service_healthy
searxng:
condition: service_healthy
networks:
- webaccess
networks:
webaccess:
driver: bridge
volumes:
postgres-data: