File size: 528 Bytes
d01383f
 
 
 
 
 
 
 
 
a4ddcd8
d01383f
 
a4ddcd8
 
d01383f
a4ddcd8
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: '3.8'

services:
  app:
    build: .
    ports:
      - "8000:8000"
    environment:
      - API_KEY=${API_KEY}
      - DOC_PATH=/tmp/my-docs
    volumes:
      - .:/app
      - gptr-outputs:/tmp/outputs # Named volume for /tmp/outputs
      - gptr-my-docs:/tmp/my-docs   # If you're using uploaded docs, add a volume for that as well
    command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
volumes:
  gptr-outputs: # Named volume declaration
  gptr-my-docs:  # Named volume declaration for my-docs