-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
39 lines (37 loc) · 1.19 KB
/
compose.yml
File metadata and controls
39 lines (37 loc) · 1.19 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
services:
# PostgreSQL database with pgvector extension for Hub
postgres:
image: pgvector/pgvector:${POSTGRES_IMAGE_TAG:-pg18}
container_name: formbricks_postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
# HOST_PORT:CONTAINER_PORT — set POSTGRES_PORT in .env to avoid conflicts (e.g. 5433 if main Formbricks uses 5432)
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres -d test_db']
interval: 10s
timeout: 5s
retries: 5
command: >
postgres
-c shared_preload_libraries=vector
# River UI - web dashboard for River job queue (webhook delivery jobs)
riverui:
image: ghcr.io/riverqueue/riverui:latest
container_name: formbricks_riverui
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/test_db?sslmode=disable
RIVER_BASIC_AUTH_USER: ${RIVER_BASIC_AUTH_USER}
RIVER_BASIC_AUTH_PASS: ${RIVER_BASIC_AUTH_PASS}
ports:
- '8081:8080'
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_data: