forked from inference-gateway/inference-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
103 lines (98 loc) · 2.21 KB
/
docker-compose.yaml
File metadata and controls
103 lines (98 loc) · 2.21 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
services:
ui:
image: ghcr.io/inference-gateway/ui:latest
ports:
- "3000:3000"
env_file:
- .env.frontend
depends_on:
inference-gateway:
condition: service_started
keycloak:
condition: service_healthy
deploy:
resources:
limits:
cpus: "2.5"
memory: 1512M
reservations:
cpus: "0.25"
memory: 256M
pull_policy: always
restart: unless-stopped
extra_hosts:
- "localhost:host-gateway"
networks:
- app-network
inference-gateway:
image: ghcr.io/inference-gateway/inference-gateway:latest
env_file:
- .env.backend
depends_on:
keycloak:
condition: service_healthy
deploy:
resources:
limits:
cpus: "0.2"
memory: 256M
reservations:
cpus: "0.1"
memory: 100M
pull_policy: always
restart: unless-stopped
extra_hosts:
- "localhost:host-gateway"
networks:
- app-network
keycloak:
image: quay.io/keycloak/keycloak:26.1
command:
- start-dev
- --import-realm
- --verbose
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://keycloak-db:5432/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: keycloak
KC_HOSTNAME: localhost
KC_LOG_LEVEL: info
ports:
- "8080:8080"
volumes:
- ./keycloak/import:/opt/keycloak/data/import
depends_on:
keycloak-db:
condition: service_started
healthcheck:
test: ["CMD", "/opt/keycloak/bin/kc.sh", "show-config", "||", "exit", "1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
networks:
- app-network
keycloak-db:
image: postgres:15
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: keycloak
volumes:
- keycloak-db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "keycloak"]
interval: 5s
timeout: 5s
retries: 5
networks:
- app-network
volumes:
keycloak-db-data:
networks:
app-network:
driver: bridge