forked from cc004/autopcr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 1.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (33 loc) · 1.14 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
services:
autopcr:
image: ghcr.io/cc004/autopcr:latest
container_name: autopcr
restart: ${RESTART_POLICY:-unless-stopped}
ports:
- "${HOST_PORT:-13200}:${AUTOPCR_SERVER_PORT:-13200}"
environment:
- AUTOPCR_SERVER_HOST=${AUTOPCR_SERVER_HOST:-0.0.0.0}
- AUTOPCR_SERVER_PORT=${AUTOPCR_SERVER_PORT:-13200}
- AUTOPCR_SERVER_DEBUG_LOG=${AUTOPCR_SERVER_DEBUG_LOG:-false}
- AUTOPCR_SERVER_ALLOW_REGISTER=${AUTOPCR_SERVER_ALLOW_REGISTER:-true}
- AUTOPCR_SERVER_SUPERUSER=${AUTOPCR_SERVER_SUPERUSER:-}
- AUTOPCR_PUBLIC_ADDRESS=${AUTOPCR_PUBLIC_ADDRESS:-}
- AUTOPCR_USE_HTTPS=${AUTOPCR_USE_HTTPS:-false}
- TZ=${TZ:-Asia/Shanghai}
volumes:
- autopcr_cache:/app/cache
- autopcr_result:/app/result
- autopcr_log:/app/log
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:${AUTOPCR_SERVER_PORT:-13200}/daily/login')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
volumes:
autopcr_cache:
driver: local
autopcr_result:
driver: local
autopcr_log:
driver: local