forked from toverainc/willow-inference-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 865 Bytes
/
docker-compose.yml
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
services:
wis:
restart: unless-stopped
image: ${IMAGE}:${TAG}
env_file:
- .env
shm_size: ${SHM_SIZE}
ipc: host
ulimits:
memlock: -1
stack: 67108864
#build:
# dockerfile: Dockerfile
ports:
- ${LISTEN_IP}:${MEDIA_PORT_RANGE}:${MEDIA_PORT_RANGE}
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
volumes:
- ./:/app
- ./cache:/root/.cache
command: ./entrypoint.sh
nginx:
restart: unless-stopped
depends_on:
- wis
image: nginx:1.25.2
volumes:
- ./nginx:/nginx
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
#environment:
# - NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE=1
ports:
- ${LISTEN_IP}:${LISTEN_PORT_HTTPS}:19000
- ${LISTEN_IP}:${LISTEN_PORT}:19001