-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.remote.yml
More file actions
78 lines (76 loc) · 2.98 KB
/
Copy pathdocker-compose.remote.yml
File metadata and controls
78 lines (76 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: scrapefun
services:
app:
image: ${SCRAPETAB_IMAGE:-haoweil/scrapefun:latest}
container_name: scrapefun
env_file:
- ./server.env
environment:
- NODE_ENV=production
- PORT=8096
- DATABASE_URL=file:/app/data/db/dev.db
- FLARESOLVERR_URL=${FLARESOLVERR_URL:-http://host.docker.internal:8191/v1}
- TMDB_API_KEY=${TMDB_API_KEY:-}
- BANGUMI_API_KEY=${BANGUMI_API_KEY:-}
- UPDATE_CURRENT_TAG=${UPDATE_CURRENT_TAG:-latest}
- UPDATE_WEBHOOK_URL=${UPDATE_WEBHOOK_URL:-http://updater:4182/update}
- UPDATE_WEBHOOK_TOKEN=${SCRAPETAB_UPDATER_TOKEN:-}
- UPDATE_DOCKERHUB_REPO=${UPDATE_DOCKERHUB_REPO:-${UPDATE_REPOSITORY:-haoweil/scrapefun}}
- NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES:-all}
# graphics is required for the Vulkan driver used by NCNN and Anime4K.
- NVIDIA_DRIVER_CAPABILITIES=${NVIDIA_DRIVER_CAPABILITIES:-compute,utility,video,graphics}
- TRANSCODE_HW_DECODE=${TRANSCODE_HW_DECODE:-auto}
- TRANSCODE_HW_ACCEL=${TRANSCODE_HW_ACCEL:-auto}
# __APP_GPU_BLOCK__
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "${APP_HOST_PORT:-8096}:8096"
volumes:
# Persist the complete data root. New runtime directories must survive an
# image recreation even when an older installer did not know their names.
- ${SCRAPEFUN_DATA_DIR:-./scrapefun-data}:/app/data
- /etc/machine-id:/host/etc/machine-id:ro
init: true
security_opt:
- no-new-privileges:true
stop_grace_period: 60s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
restart: unless-stopped
updater:
image: ${SCRAPETAB_UPDATER_IMAGE:-haoweil/scrapefun-updater:latest}
container_name: scrapefun-updater
working_dir: /workspace
environment:
- UPDATER_PORT=4182
- UPDATER_TOKEN=${SCRAPETAB_UPDATER_TOKEN:-}
- UPDATER_PROJECT_DIR=/workspace
- UPDATER_COMPOSE_FILE=/workspace/docker-compose.remote.yml
- UPDATER_SERVICE_NAME=app
- UPDATER_HEALTHCHECK_URL=http://app:8096/health/ready
- UPDATER_STATE_ENV_FILE=/workspace/.updater.env
- UPDATER_SERVER_ENV_FILE=/workspace/server.env
- UPDATER_SERVER_ENV_SCHEMA_URL=${UPDATER_SERVER_ENV_SCHEMA_URL:-https://raw.githubusercontent.com/HaoweiLi97/ScrapeFun/main/server-env.schema.json}
- UPDATER_SERVER_ENV_SCHEMA_CACHE=/workspace/.server-env.schema.json
- UPDATER_STATUS_FILE=/workspace/.updater-status.json
- UPDATER_UPDATE_METADATA_FILE=/workspace/.updater-image-state.json
- UPDATER_REPOSITORY=${UPDATE_DOCKERHUB_REPO:-${UPDATE_REPOSITORY:-haoweil/scrapefun}}
volumes:
- ./:/workspace
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "127.0.0.1:4182:4182"
init: true
security_opt:
- no-new-privileges:true
stop_grace_period: 30s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
restart: unless-stopped