Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
138 lines (130 loc) · 3.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
138 lines (130 loc) · 3.5 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
services:
dashboard:
build: dashboard
restart: always
ports:
- "8000:80"
environment:
- MINIO_ENDPOINT=localhost # TODO update this to external hostname
- MINIO_PORT=9000
- MINIO_ACCESS_KEY=shoutoutdevuser
- MINIO_SECRET_KEY=shoutoutdevuser
- MINIO_SSL_ENABLED=false # TODO toggle if your endpoint is supporting valid https
- RABBITMQ_URL=amqp://rabbit:rabbit@rabbitmq
- DATABASE_URL=postgresql://admin:admin@postgres:5432/postgres?schema=public
depends_on:
- postgres
- minio
- rabbitmq
worker:
build:
context: worker
args:
- HUGGINGFACE_APIKEY=not_a_real_api_key # TODO replace with a real one
- WHISPER_MODEL=tiny # TODO GPU: use `large-v3` for more precise results
restart: always
environment:
- DATABASE_HOST=postgres
- DATABASE_NAME=postgres
- DATABASE_USER=admin
- DATABASE_PASSWORD=admin
- DATABASE_PORT=5432
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_USER=rabbit
- RABBITMQ_PASSWORD=rabbit
- MINIO_SECRET_KEY=shoutoutdevuser
- MINIO_ACCESS_KEY=shoutoutdevuser
- MINIO_URL=http://minio:9000/
- LOG_LEVEL=INFO
depends_on:
- postgres
- minio
- rabbitmq
deploy:
mode: replicated
replicas: 2
# TODO GPU: If you haven't installed the nividia-container-toolkit delete the following part:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
postgres:
image: postgres:17
restart: always
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
ports:
- "5433:5432"
volumes:
- shoutout-db-data:/var/lib/postgresql/data
minio:
image: quay.io/minio/minio
restart: always
environment:
- MINIO_ROOT_USER=shoutoutdevuser
- MINIO_ROOT_PASSWORD=shoutoutdevuser
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
rabbitmq:
image: rabbitmq:management
restart: always
environment:
- RABBITMQ_DEFAULT_USER=rabbit
- RABBITMQ_DEFAULT_PASS=rabbit
ports:
- "5672:5672"
- "15672:15672"
volumes:
- ./conf/advanced.config:/etc/rabbitmq/advanced.config:ro
job-cleaner:
build: sanity_check
environment:
DB_USER: admin
DB_PASSWORD: admin
DB_NAME: postgres
DB_HOST: postgres
DB_PORT: 5432
depends_on:
- postgres
keycloak-postgres:
image: postgres:17
volumes:
- "keycloak-postgres-data:/var/lib/postgresql/data"
environment:
POSTGRES_DB: "keycloak"
POSTGRES_USER: "keycloak"
POSTGRES_PASSWORD: "password"
keycloak:
image: quay.io/keycloak/keycloak
environment:
KC_DB: "postgres"
KC_DB_URL: "jdbc:postgresql://keycloak-postgres:5432/keycloak"
KC_DB_USERNAME: "keycloak"
KC_DB_PASSWORD: "password"
KC_HOSTNAME: "localhost"
KC_HOSTNAME_PORT: 8080
KC_HOSTNAME_STRICT: false
KC_HOSTNAME_STRICT_HTTPS: false
KC_LOG_LEVEL: "info"
KC_METRICS_ENABLED: true
KC_HEALTH_ENABLED: true
KEYCLOAK_ADMIN: "admin"
KEYCLOAK_ADMIN_PASSWORD: "admin"
command: start-dev --import-realm
ports:
- "8090:8080"
depends_on:
- keycloak-postgres
volumes:
- ./.keycloak-config:/opt/keycloak/data/import
volumes:
shoutout-db-data:
minio_data:
keycloak-postgres-data: