fix: align crawler network with test database
This commit is contained in:
@@ -34,6 +34,9 @@ services:
|
||||
context: ./crawler
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
# The test MySQL account is granted for 127.0.0.1; keep crawler and
|
||||
# kb-worker on host networking so both use the same test database.
|
||||
network_mode: host
|
||||
env_file:
|
||||
- ./.env.docker
|
||||
environment:
|
||||
@@ -41,13 +44,13 @@ services:
|
||||
DQD_CONFIG_PATH: /app/config/settings.yaml
|
||||
DQD_TASKS_FILE: /app/config/crawler_tasks.yaml
|
||||
DQD_LOCK_DIR: /app/data/locks
|
||||
DQD_DB_HOST: 127.0.0.1
|
||||
DQD_REDIS_HOST: 127.0.0.1
|
||||
volumes:
|
||||
- ./crawler/logs:/app/logs
|
||||
- ./crawler/data:/app/data
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
networks:
|
||||
- sport-era-dev
|
||||
|
||||
nginx:
|
||||
image: registry.cn-guangzhou.aliyuncs.com/likeadmin/nginx:1.23.1
|
||||
|
||||
Reference in New Issue
Block a user