-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.db2.yaml
32 lines (32 loc) · 981 Bytes
/
docker-compose.db2.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
version: '3'
services:
postgresdb02:
image: quay.io/redhattelco/intelli-infra-db
container_name: postgresdb02
restart: always
volumes:
- ./db/db2-data:/var/lib/postgresql/data
# - ./db/config/postgres.conf:/etc/postgresql/postgresql.conf
# - ./db/config/pg_hba.conf:/etc/postgresql/pg_hba.conf
ports:
- "5433:5432"
environment:
- 'POSTGRES_PASSWORD=pgdbpassword'
- 'POSTGRES_USER=pgdbuser'
# postgresdb03:
# image: quay.io/redhattelco/intelli-infra-db
# container_name: postgresdb03
# restart: always
# volumes:
# - ./db/worker-data-02:/var/lib/postgresql/data
# # - ./db/config/postgres.conf:/etc/postgresql/postgresql.conf
# # - ./db/config/pg_hba.conf:/etc/postgresql/pg_hba.conf
# ports:
# - "5434:5432"
# environment:
# - 'POSTGRES_PASSWORD=pgdbpassword'
# - 'POSTGRES_USER=pgdbuser'
networks:
default:
external:
name: pgdb-ha-network