-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.3 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
services:
typesense:
image: typesense/typesense:28.0
ports:
- "8108:8108"
volumes:
- typesense_data:/data
environment:
- TYPESENSE_API_KEY=your_api_key_here
- TYPESENSE_DATA_DIR=/data
- TYPESENSE_ENABLE_CORS=true
postgres:
image: postgres:16-alpine
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=mint
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/mint
- REDIS_URL=redis://redis:6379
command: sh -c "bun db:migrate && bun run start"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
postgres_data:
typesense_data:
redis_data: