-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 899 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 899 Bytes
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
services:
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: instant
POSTGRES_PASSWORD: instant
POSTGRES_DB: instant_lite
ports:
- "15432:5432"
volumes:
- ./internal/server/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U instant -d instant_lite"]
interval: 2s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
ports:
- "16379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 2s
timeout: 3s
retries: 10
app:
build: .
ports:
- "18080:8080"
environment:
CONFIG_PATH: "/app/config.yaml"
volumes:
- ./config.docker.yaml:/app/config.yaml:ro
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy