-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.24 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
46
47
48
49
50
services:
postgres:
build: .
container_name: postgres
environment:
POSTGRES_PASSWORD: perd
POSTGRES_USER: perd
POSTGRES_DB: perd
command: -c max_connections=1000
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U perd' ]
interval: 10s
timeout: 5s
retries: 5
# https://github.com/neondatabase/neon/issues/4989
# https://github.com/neondatabase/serverless/issues/33#issuecomment-1634853042
# https://github.com/TimoWilhelm/local-neon-http-proxy/tree/main
# https://readme.localtest.me/
neon-proxy:
image: ghcr.io/timowilhelm/local-neon-http-proxy:main
environment:
- PG_CONNECTION_STRING=postgres://perd:perd@postgres:5432/perd
restart: unless-stopped
ports:
- '4444:4444'
depends_on:
postgres:
condition: service_healthy
neon-wsproxy:
image: ghcr.io/neondatabase/wsproxy:latest
environment:
APPEND_PORT: postgres:5432
ALLOW_ADDR_REGEX: .*
LOG_TRAFFIC: true
restart: unless-stopped
ports:
- "5433:80"
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_data: