-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
34 lines (33 loc) · 931 Bytes
/
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
version: '3.1'
services:
# pgadmin4 for pgbouncer.
pgadmin4-master:
image: fenglc/pgadmin4
ports:
- 5050:5050
links:
- postgres:postgres
environment:
DEFAULT_USER: pgbouncer_database
DEFAULT_PASSWORD: 12345678
# Postgres database.
postgres:
image: postgres:9.6.5
environment:
POSTGRES_USER: postgres # define credentials
POSTGRES_PASSWORD: postgres # define credentials
POSTGRES_DB: postgres # define database
ports:
- 5432:5432 # Postgres port
# Postgres database.
pgbouncer:
image: brainsam/pgbouncer:1.7.2
environment:
DB_HOST: postgres
DB_USER: postgres # define credentials
DB_PASSWORD: postgres # define credentials
DB_port: 5432 # define database
links:
- postgres:postgres
ports:
- 6432:6432 # PgBouncer port