-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1.53 KB
/
docker-compose.yml
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
# NOTE: Postgres (and certainly supabase) is not a requirement for usage in OpenInt, though it is the default set
# Therefore this docker-compose file is entirely optional
version: '3'
services:
postgres:
image: postgres
ports:
- 5432:5432
# command: postgres -c log_statement=all
restart: always
environment:
POSTGRES_DB: postgres # Only database named `postgres` works with pg_cron by default
POSTGRES_PASSWORD: password
command: ["postgres", "-c", "log_statement=all", "-c", "max_connections=500"]
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
supabase:
image: supabase/postgres:15.8.1.017 # For some reason "lastest tag" is having issues... so we pin to a specific version latest as of 2024-12-20_0055
ports:
- 5433:5432 # Change the port to avoid conflict with the default postgres
command: postgres -c config_file=/etc/postgresql/postgresql.conf -c log_statement=all -c max_connections=500
restart: always
environment:
POSTGRES_DB: supabase # Only database named `postgres` works with pg_cron by default
POSTGRES_PASSWORD: password
inngest:
image: inngest/inngest
command: 'inngest dev'
ports:
- '8288:8288'
neon-proxy:
image: ghcr.io/timowilhelm/local-neon-http-proxy:main
environment:
PG_CONNECTION_STRING: postgres://postgres:password@postgres:5432/postgres
ports:
- '4444:4444'
depends_on:
postgres:
condition: service_healthy