-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
82 lines (78 loc) · 2.52 KB
/
docker-compose.yaml
File metadata and controls
82 lines (78 loc) · 2.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
services:
# Proxy for one, or multiple, containerized inference servers
proxy:
image: nginx:1.28.2-alpine
hostname: inference-server
expose:
- "${INFERENCE_PROXY_PORT:-8000}"
volumes:
- ./server/nginx_dev.conf.template:/etc/nginx/templates/nginx.conf.template:ro,z
environment:
- INFERENCE_PROXY_PORT=${INFERENCE_PROXY_PORT:-8000}
- INFERENCE_SERVER_PORT=${INFERENCE_SERVER_PORT:-8100}
depends_on:
- inference-0
# Base and developer deployments are using llama.cpp for improved portability
inference-0:
image: quay.io/logdetective/inference:latest
build:
context: .
dockerfile: ./Containerfile.llama.cpp
# make sure to match this hostname with inference->url in server/config.yml
command: "llama-server --host 0.0.0.0 --port ${INFERENCE_SERVER_PORT:-8100}"
stdin_open: true
tty: true
env_file: .env
expose:
- "${INFERENCE_SERVER_PORT:-8100}"
volumes:
- ${MODELS_PATH-./models}:/models:Z
# these 4 lines are needed for CUDA acceleration
# devices:
# - nvidia.com/gpu=all
# security_opt:
# - "label=disable"
server:
image: quay.io/logdetective/server:latest
depends_on:
- proxy
- postgres
build:
context: .
dockerfile: ./Containerfile
hostname: logdetective-server
stdin_open: true
tty: true
volumes:
- .:/src/:z
- ./server/config.yml:/config.yml:z
- ./files/run_server.sh:/run_server.sh:z
ports:
- "${LOGDETECTIVE_SERVER_PORT:-8080}:${LOGDETECTIVE_SERVER_PORT:-8080}"
env_file: .env
# so gunicorn can find logdetective python module
# and alembic can find alembic.ini
working_dir: /src
entrypoint: ["/run_server.sh"]
postgres:
image: quay.io/sclorg/postgresql-15-c9s
volumes:
- database_data:/var/lib/postgresql/data
ports:
- "${POSTGRESQL_PORT:-5432}:${POSTGRESQL_PORT:-5432}"
env_file: .env
packit-interface:
image: quay.io/logdetective/packit:latest
volumes:
- ${FM_CERT_PATH:-./fedora_messaging_certs/logdetective-packit-cert.pem}:/etc/fedora-messaging/fedora-cert.pem:ro,Z
- ${FM_KEY_PATH:-./fedora_messaging_certs/logdetective-packit-key.pem}:/etc/fedora-messaging/fedora-key.pem:ro,Z
depends_on:
- server
# Port 8090 is the default for logdetective-packit container
# github.com/fedora-copr/logdetective-packit
ports:
- "${PACKIT_INTERFACE_PORT:-8090}:${PACKIT_INTERFACE_PORT:-8090}"
env_file: .env
volumes:
database_data:
driver: local