-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 825 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (37 loc) · 825 Bytes
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
services:
app:
image: ghcr.io/thhanke/pdf2md:latest
container_name: ${APP_NAME}
env_file:
- .env
ports:
- ${APP_PORT}:5000
#restart: always
networks:
- app_net
logging:
driver: "json-file"
options:
max-size: "10m" # Specify the maximum size of each log file
deploy:
resources:
limits:
cpus: '8.00'
memory: 12G
reservations:
cpus: '1.00'
memory: 6G
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5000/info" ]
interval: 10s
timeout: 10s
retries: 20
restart: on-failure
networks:
app_net:
name: ${APP_NAME}_net
driver: bridge