forked from smartcontractkit/chainlink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.postgres.yaml
More file actions
36 lines (31 loc) · 885 Bytes
/
docker-compose.postgres.yaml
File metadata and controls
36 lines (31 loc) · 885 Bytes
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
version: '3.5'
services:
node:
depends_on:
- node-db
environment:
- DATABASE_URL=postgresql://postgres:$CHAINLINK_PGPASSWORD@node-db:5432/$CHAINLINK_DB_NAME?sslmode=disable
node-2:
depends_on:
- node-db-2
environment:
- DATABASE_URL=postgresql://postgres:$CHAINLINK_PGPASSWORD@node-db-2:5432/$CHAINLINK_DB_NAME?sslmode=disable
node-db:
container_name: chainlink-db
image: postgres:11.6
volumes:
- node-db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: $CHAINLINK_DB_NAME
POSTGRES_PASSWORD: $CHAINLINK_PGPASSWORD
node-db-2:
container_name: chainlink-db-2
image: postgres:11.6
volumes:
- node-db-2-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: $CHAINLINK_DB_NAME
POSTGRES_PASSWORD: $CHAINLINK_PGPASSWORD
volumes:
node-db-data:
node-db-2-data: