-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
executable file
·72 lines (69 loc) · 1.57 KB
/
compose.yml
File metadata and controls
executable file
·72 lines (69 loc) · 1.57 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
services:
database:
container_name: database
image: postgres:16.2-alpine3.19
environment:
POSTGRES_PASSWORD: $DATABASE_PASSWORD
POSTGRES_USER: user
POSTGRES_DB: database
restart: unless-stopped
ports:
- 127.0.0.1:5432:5432
volumes:
- ./volumes/database:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD",
"pg_isready",
"-q",
"-d",
"database",
"-U",
"user"
]
interval: 10s
timeout: 5s
retries: 5
minio:
container_name: minio
image: minio/minio:latest
environment:
MINIO_ROOT_USER: user
MINIO_ROOT_PASSWORD: $MINIO_PASSWORD
restart: unless-stopped
ports:
- 172.17.0.1:9180:9000
volumes:
- ./volumes/minio:/data
deploy:
resources:
limits:
memory: 512m
healthcheck:
test: [ "CMD", "mc", "ready", "local" ]
interval: 10s
timeout: 5s
retries: 5
command: minio server /data --console-address ":9001"
app:
container_name: app
build: .
image: summarizer-app
environment:
TQDM_DISABLE: $TQDM_DISABLE
INSIDE_DOCKER: 1
restart: unless-stopped
volumes:
- ./server:/app/server
- ./summarizer:/app/summarizer
- ./.env:/app/.env
- ./volumes/logs:/app/logs/
ports:
- 172.17.0.1:$PORT:3000
depends_on:
database:
condition: service_healthy
minio:
condition: service_healthy
command: sh -c "python -u server/app.py >> ./logs/logs.txt 2>&1"