-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.ssl.yml.example
More file actions
41 lines (35 loc) · 1.52 KB
/
docker-compose.ssl.yml.example
File metadata and controls
41 lines (35 loc) · 1.52 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
35
36
37
38
39
40
41
services:
olmocr:
# Use the official olmocr image from Docker Hub.
image: alleninstituteforai/olmocr:latest
container_name: olmocr
# Keep STDIN open (-i) and allocate a pseudo-TTY (-t) for interactive use.
stdin_open: true
tty: true
# Mount the local data directory into '/app/input' inside the container.
# Place your PDFs inside the data directory on your host machine.
# Output files will also be written back to this directory.
volumes:
- ${DATA_DIRECTORY:-./data}:/app/input
# Mount corporate certificate for SSL/TLS verification when SSL is enabled
- ${SSL_CERT_PATH}:/etc/ssl/certs/corporate_ca.crt:ro
# Set the default working directory inside the container.
working_dir: /app/input
environment:
# SSL/TLS Certificate Configuration - set when SSL_ENABLED=true
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/corporate_ca.crt
- SSL_CERT_FILE=/etc/ssl/certs/corporate_ca.crt
- HF_HUB_CERTIFICATE=/etc/ssl/certs/corporate_ca.crt
- CURL_CA_BUNDLE=/etc/ssl/certs/corporate_ca.crt
# Configure the container to use NVIDIA GPUs.
# This requires the NVIDIA Container Toolkit to be installed on the host.
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
# The default command starts an interactive bash shell inside the container.
# You can override this to run a command directly.
command: /bin/bash