-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
48 lines (44 loc) · 1017 Bytes
/
docker-compose.yaml
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
services:
db:
image: postgres:15.6
restart: always
command: -c 'max_connections=1000'
environment:
POSTGRES_HOST_AUTH_METHOD: md5
POSTGRES_INITDB_ARGS: --auth=md5
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: unprice
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
# pgbouncer:
# image: edoburu/pgbouncer
# environment:
# DB_USER: postgres
# DB_PASSWORD: postgres
# DB_HOST: db
# DB_NAME: postgres
# POOL_MODE: session
# ADMIN_USERS: postgres
# ports:
# - "5432:5432"
# depends_on:
# - db
pg_proxy:
platform: linux/x86_64
image: ghcr.io/neondatabase/wsproxy:latest
environment:
# APPEND_PORT: "pgbouncer:5432"
# APPEND_PORT: "db:5432"
ALLOW_ADDR_REGEX: ".*"
LOG_TRAFFIC: "true"
# USE_HOST_HEADER: "false"
ports:
- "5433:80"
depends_on:
# - pgbouncer
- db
volumes:
pgdata: