更新
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
TZ=Asia/Shanghai
|
||||
|
||||
# MySQL. Keep real credentials in docker/.env.docker only; do not commit it.
|
||||
DQD_DB_HOST=host.docker.internal
|
||||
DQD_DB_PORT=3300
|
||||
DQD_DB_NAME=sbnews
|
||||
DQD_DB_USER=sbnews
|
||||
DQD_DB_PASSWORD=change-me
|
||||
DQD_DB_PREFIX=la_
|
||||
DQD_DB_CHARSET=utf8mb4
|
||||
|
||||
# Redis, used by crawler modules that need cache/state.
|
||||
DQD_REDIS_HOST=host.docker.internal
|
||||
DQD_REDIS_PORT=6377
|
||||
DQD_REDIS_PASSWORD=change-me
|
||||
DQD_REDIS_DB=4
|
||||
|
||||
DQD_LOG_LEVEL=INFO
|
||||
DQD_LOG_FILE=/app/logs/crawler.log
|
||||
+3
-1
@@ -1,2 +1,4 @@
|
||||
/data
|
||||
/log
|
||||
/log
|
||||
.env
|
||||
.env.docker
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
services:
|
||||
crawler:
|
||||
container_name: sport-era-crawler
|
||||
image: sport-era-crawler:latest
|
||||
build:
|
||||
context: ${CRAWLER_DIR:-../server/public/dongqiudi-crawler}
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
env_file:
|
||||
- ./.env.docker
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
DQD_CONFIG_PATH: /app/config/settings.yaml
|
||||
DQD_TASKS_FILE: /app/config/crawler_tasks.yaml
|
||||
DQD_LOCK_DIR: /app/data/locks
|
||||
volumes:
|
||||
- ${CRAWLER_DIR:-../server/public/dongqiudi-crawler}/logs:/app/logs
|
||||
- ${CRAWLER_DIR:-../server/public/dongqiudi-crawler}/data:/app/data
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
Reference in New Issue
Block a user