fix: align crawler network with test database
This commit is contained in:
@@ -34,6 +34,9 @@ services:
|
|||||||
context: ./crawler
|
context: ./crawler
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
restart: unless-stopped
|
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_file:
|
||||||
- ./.env.docker
|
- ./.env.docker
|
||||||
environment:
|
environment:
|
||||||
@@ -41,13 +44,13 @@ services:
|
|||||||
DQD_CONFIG_PATH: /app/config/settings.yaml
|
DQD_CONFIG_PATH: /app/config/settings.yaml
|
||||||
DQD_TASKS_FILE: /app/config/crawler_tasks.yaml
|
DQD_TASKS_FILE: /app/config/crawler_tasks.yaml
|
||||||
DQD_LOCK_DIR: /app/data/locks
|
DQD_LOCK_DIR: /app/data/locks
|
||||||
|
DQD_DB_HOST: 127.0.0.1
|
||||||
|
DQD_REDIS_HOST: 127.0.0.1
|
||||||
volumes:
|
volumes:
|
||||||
- ./crawler/logs:/app/logs
|
- ./crawler/logs:/app/logs
|
||||||
- ./crawler/data:/app/data
|
- ./crawler/data:/app/data
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
networks:
|
|
||||||
- sport-era-dev
|
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: registry.cn-guangzhou.aliyuncs.com/likeadmin/nginx:1.23.1
|
image: registry.cn-guangzhou.aliyuncs.com/likeadmin/nginx:1.23.1
|
||||||
|
|||||||
Reference in New Issue
Block a user