File size: 638 Bytes
c33608b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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