-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.07 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:
postgres-perd:
image: postgres:18
container_name: postgres-perd
environment:
POSTGRES_PASSWORD: perd
POSTGRES_USER: perd
POSTGRES_DB: perd
command: -c max_connections=1000
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- postgres_perd:/var/lib/postgresql
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U perd' ]
interval: 10s
timeout: 5s
retries: 5
# https://neon.com/guides/local-development-with-neon
# 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:
container_name: neon-proxy-perd
image: ghcr.io/perdolique/local-neon-proxy:latest
environment:
- PG_CONNECTION_STRING=postgres://perd:perd@postgres-perd:5432/perd
restart: unless-stopped
ports:
- '4444:4444'
depends_on:
postgres-perd:
condition: service_healthy
volumes:
postgres_perd: