22 lines
546 B
YAML
22 lines
546 B
YAML
services:
|
|
gpt-load:
|
|
image: ghcr.io/tbphp/gpt-load:latest
|
|
# build:
|
|
# context: .
|
|
# dockerfile: Dockerfile
|
|
container_name: gpt-load
|
|
ports:
|
|
- "${PORT:-3001}:${PORT:-3001}"
|
|
env_file:
|
|
- .env
|
|
restart: always
|
|
volumes:
|
|
- "${DATA_DIR:-./data}:/app/data"
|
|
stop_grace_period: ${CONTAINER_STOP_GRACE_PERIOD:-15s}
|
|
healthcheck:
|
|
test: wget -q --spider -T 10 -O /dev/null http://localhost:${PORT:-3001}/health
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|