Phillnet-Mini-Max / docker-compose.yml
ayjays132's picture
Release Phillnet Mini Text-Vision v1.1.0
c33608b verified
Raw
History Blame Contribute Delete
638 Bytes
services:
phillnet-mini-text-vision:
build:
context: .
dockerfile: Dockerfile
image: phillnet-mini-text-vision:1.1.0
restart: unless-stopped
env_file:
- .env
ports:
- "${PHILLNET_BIND_ADDRESS:-127.0.0.1}:${PHILLNET_PORT:-8000}:8000"
init: true
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid,size=256m
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/ready', timeout=3)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 120s