Initial commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
services:
|
||||
newspaper:
|
||||
network_mode: host
|
||||
build:
|
||||
context: .
|
||||
network: host
|
||||
args:
|
||||
HTTP_PROXY: ${HTTP_PROXY:-}
|
||||
HTTPS_PROXY: ${HTTPS_PROXY:-}
|
||||
ALL_PROXY: ${ALL_PROXY:-}
|
||||
NO_PROXY: ${NO_PROXY:-localhost,127.0.0.1}
|
||||
http_proxy: ${HTTP_PROXY:-}
|
||||
https_proxy: ${HTTPS_PROXY:-}
|
||||
all_proxy: ${ALL_PROXY:-}
|
||||
no_proxy: ${NO_PROXY:-localhost,127.0.0.1}
|
||||
image: hongyu-daily-newspaper:latest
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
TZ: ${TZ:-Asia/Shanghai}
|
||||
volumes:
|
||||
- ./newspaper:/app/newspaper
|
||||
command: ["hongyu-daily", "run"]
|
||||
restart: "no"
|
||||
|
||||
scheduler:
|
||||
network_mode: host
|
||||
build:
|
||||
context: .
|
||||
network: host
|
||||
args:
|
||||
HTTP_PROXY: ${HTTP_PROXY:-}
|
||||
HTTPS_PROXY: ${HTTPS_PROXY:-}
|
||||
ALL_PROXY: ${ALL_PROXY:-}
|
||||
NO_PROXY: ${NO_PROXY:-localhost,127.0.0.1}
|
||||
http_proxy: ${HTTP_PROXY:-}
|
||||
https_proxy: ${HTTPS_PROXY:-}
|
||||
all_proxy: ${ALL_PROXY:-}
|
||||
no_proxy: ${NO_PROXY:-localhost,127.0.0.1}
|
||||
image: hongyu-daily-newspaper:latest
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
TZ: ${TZ:-Asia/Shanghai}
|
||||
NEWSPAPER_SCHEDULE_TIME: ${NEWSPAPER_SCHEDULE_TIME:-08:00}
|
||||
volumes:
|
||||
- ./newspaper:/app/newspaper
|
||||
command: ["hongyu-daily", "schedule"]
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user