forked from Giveth/impact-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-local-postgres-db-readonly.yml
More file actions
44 lines (39 loc) · 1.1 KB
/
docker-compose-local-postgres-db-readonly.yml
File metadata and controls
44 lines (39 loc) · 1.1 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
40
41
42
43
44
services:
impact-graph-postgres:
# Use this postgres image https://github.com/Giveth/postgres-givethio
image: ghcr.io/giveth/postgres-givethio:latest
restart: always
environment:
- POSTGRES_DB=givethio
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
impact-graph-postgres-replica:
# Read-only replica of the main Postgres container
image: ghcr.io/giveth/postgres-givethio:latest
restart: always
environment:
- POSTGRES_DB=givethio
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_PRIMARY_HOST=impact-graph-postgres
- POSTGRES_PRIMARY_PORT=5432
- POSTGRES_PRIMARY_USER=postgres
- POSTGRES_PRIMARY_PASSWORD=postgres
- POSTGRES_REPLICA=true
ports:
- "5431:5432"
volumes:
- db-data-replica:/var/lib/postgresql/data
networks:
- giveth
volumes:
db-data:
db-data-replica:
networks:
giveth: