forked from debarchito/miruhane
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
52 lines (49 loc) · 1.18 KB
/
docker-compose-prod.yml
File metadata and controls
52 lines (49 loc) · 1.18 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
services:
db:
image: postgres:17-alpine
container_name: miruhanedb
ports:
- ${POSTGRES_PORT}:5432
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- miruhane-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d miruhanedb"]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
app:
build:
context: .
dockerfile: Dockerfile
container_name: miruhane
ports:
- "3000:3000"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
HUGGINGFACE_TOKEN: ${HUGGINGFACE_TOKEN}
GEMINI_API_KEY: ${GEMINI_API_KEY}
SPEECHIFY_KEY: ${SPEECHIFY_KEY}
depends_on:
- db
networks:
- miruhane-network
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "3000"]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
networks:
miruhane-network:
driver: bridge
volumes:
postgres_data: