forked from StakeSquid/graphprotocol-combined-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
database.yml
43 lines (32 loc) · 954 Bytes
/
database.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
35
36
37
38
39
40
version: '2.1'
x-logging:
&default-logging
options:
max-file: '1'
compress: 'false'
driver: local
networks:
monitor-net:
driver: bridge
volumes:
postgres_data: {}
services:
######################################################################################
##################### POSTGRES CONTAINER #######################
######################################################################################
postgres:
image: postgres:14.5
container_name: postgres
command: ["postgres", "-c", "shared_preload_libraries=pg_stat_statements"]
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER:-graph-node}
POSTGRES_PASSWORD: ${DB_PASS:-db-password}
POSTGRES_DB: ${GRAPH_NODE_DB_NAME:-graph-node}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- monitor-net
expose:
- 5432
logging: *default-logging