# ============================================================================= # TIANAI CAPTCHA —— 测试机(156.233.226.86)本地验证码平台栈 # 作用:拼豆测试环境自包含的人机验证平台,不跨机依赖 prod1:18200 # 部署:docker compose -f docker-compose.tianai.yml up -d # 前置:/opt/tianai/{web,config,pgdata} 目录已就位(bind mount 持久化) # 网络:mw 外部网络(deploy-test.yml 会自动创建;perler 前后端容器也加入 mw # 以便通过容器名 tianai-captcha:18200 访问平台) # 站点:TestEnv(siteKey 6a062b70-c0b3-428e-8f1b-cca402e67ddd, # secretKey 见 deploy-test.yml / 平台管理端) # ============================================================================= services: captcha-forge-pg: image: postgres:18-alpine container_name: captcha-forge-pg restart: unless-stopped environment: POSTGRES_USER: pgsql POSTGRES_PASSWORD: "b2ad1fb583c4255bd9d818fa" POSTGRES_DB: captcha_forge volumes: - /opt/tianai/pgdata:/var/lib/postgresql healthcheck: test: ["CMD-SHELL", "pg_isready -U pgsql -d captcha_forge"] interval: 5s timeout: 3s retries: 12 networks: [mw] tianai-captcha: image: 156.233.226.46:5000/tianai-captcha-platform:test container_name: tianai-captcha restart: unless-stopped depends_on: captcha-forge-pg: condition: service_healthy volumes: - /opt/tianai/config:/app/config ports: # 仅绑定本机回环:secondary-verify 供本机/容器网络调用,不暴露公网 - "127.0.0.1:18200:18200" networks: [mw] tianai-web: image: nginx:alpine container_name: tianai-web restart: unless-stopped volumes: - /opt/tianai/web:/usr/share/nginx/html:ro - /opt/tianai/web/nginx.conf:/etc/nginx/conf.d/default.conf:ro ports: - "8080:80" networks: [mw] networks: mw: external: true