-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
144 lines (136 loc) · 3.29 KB
/
docker-compose.yml
File metadata and controls
144 lines (136 loc) · 3.29 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: "3.9"
services:
minio:
image: minio/minio:latest
restart: unless-stopped
expose:
- 9000
ports:
- "9001:9001"
networks:
- local
volumes:
- minio-storage:/data
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 15s
retries: 3
command: ["server", "--console-address", ":9001", "/data/"]
postgres:
image: postgres:17.6
restart: unless-stopped
expose:
- 5432
ports:
- "5432:5432"
networks:
- local
volumes:
- postgres-storage:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${PG_DB}
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASS}
healthcheck:
test: ["CMD-SHELL","pg_isready -U postgres"]
interval: 10s
retries: 5
command: ["postgres", "-c", "max_prepared_transactions=16"]
rabbit:
image: rabbitmq:4.1.3-management
restart: unless-stopped
expose:
- 5672
ports:
- "15672:15672"
networks:
- local
volumes:
- rabbit-storage:/var/lib/rabbitmq
environment:
RABBITMQ_DEFAULT_USER: ${RABBIT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBIT_PASS}
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "status"]
interval: 10s
retries: 5
api:
build:
context: .
dockerfile: services/api/Dockerfile
image: blps/api:latest
restart: unless-stopped
depends_on:
- postgres
- minio
- rabbit
ports:
- "8080:8080"
networks:
- local
environment:
APP_PORT: 8080
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MINIO_URL: http://minio:9000
PG_URL: ${PG_URL}
PG_SCHEMA: ${PG_SCHEMA}
PG_USER: ${PG_USER}
PG_PASS: ${PG_PASS}
RABBIT_HOST: rabbit
RABBIT_PORT: 5672
RABBIT_USER: ${RABBIT_USER}
RABBIT_PASS: ${RABBIT_PASS}
BANNED_WORDS_PATH: ${BANNED_WORDS_PATH}
JWT_SECRET: ${JWT_SECRET}
HIVE_API_KEY: ${HIVE_API_KEY}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 15s
timeout: 5s
retries: 6
transcriptions:
build:
context: .
dockerfile: services/transcriptions/Dockerfile
args:
- WHISPER_MODEL_TYPE=${WHISPER_MODEL_TYPE}
image: blps/transcriptions:latest
restart: unless-stopped
depends_on:
- postgres
- minio
- rabbit
- api
networks:
- local
environment:
APP_PORT: 8080
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MINIO_URL: http://minio:9000
PG_URL: ${PG_URL}
PG_SCHEMA: ${PG_SCHEMA}
PG_USER: ${PG_USER}
PG_PASS: ${PG_PASS}
RABBIT_HOST: rabbit
RABBIT_PORT: 5672
RABBIT_USER: ${RABBIT_USER}
RABBIT_PASS: ${RABBIT_PASS}
BANNED_WORDS_PATH: ${BANNED_WORDS_PATH}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 15s
timeout: 5s
retries: 6
deploy:
replicas: 2
volumes:
minio-storage:
postgres-storage:
rabbit-storage:
networks:
local: