forked from GainForest/hyperindex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
36 lines (33 loc) · 968 Bytes
/
docker-compose.postgres.yml
File metadata and controls
36 lines (33 loc) · 968 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
version: '3.8'
services:
hyperindex:
build: .
ports:
- "8080:8080"
environment:
- HOST=0.0.0.0
- PORT=8080
- DATABASE_URL=postgres://hyperindex:hyperindex@postgres:5432/hyperindex?sslmode=disable
- SECRET_KEY_BASE=${SECRET_KEY_BASE:?SECRET_KEY_BASE must be set - generate with: openssl rand -hex 32}
- EXTERNAL_BASE_URL=${EXTERNAL_BASE_URL:-http://localhost:8080}
- OAUTH_LOOPBACK_MODE=${OAUTH_LOOPBACK_MODE:-true}
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:16-alpine
environment:
- POSTGRES_USER=hyperindex
- POSTGRES_PASSWORD=hyperindex
- POSTGRES_DB=hyperindex
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hyperindex"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres-data: