-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (42 loc) · 1002 Bytes
/
docker-compose.yml
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
services:
postgres:
image: postgres:latest
user: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
ports:
- "5432:5432"
volumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 10s
timeout: 60s
retries: 5
start_period: 20s
whisper:
image: ghcr.io/kommtkevinonline/whisper:main
environment:
- API_KEYS=${WHISPER_API_KEY}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
worker:
build:
context: .
dockerfile: Dockerfile
user: root
volumes:
- ./:/usr/src/app
# command: "air"
working_dir: /usr/src/app
command: "go run ."
depends_on:
postgres:
condition: service_healthy