forked from hirosystems/stacks-blockchain-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (62 loc) · 1.54 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.7'
services:
postgres:
image: "postgres:12.2"
ports:
- "5490:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: stacks_core_sidecar
POSTGRES_PORT: 5432
volumes:
- database-data:/var/lib/postgresql/data/ # persist data even if container shuts down
networks:
- backend
stacks-blockchain:
build:
context: ./stacks-blockchain/docker
command: stacks-node start --config=/app/config/Stacks-follower.toml
restart: on-failure
environment:
STACKS_EVENT_OBSERVER: http://sidecar:3700
XBLOCKSTACK_DEBUG: 1
RUST_BACKTRACE: 1
ports:
- "20443:20443"
- "20444:20444"
volumes:
- ./stacks-blockchain/:/app/config
- ./stacks-blockchain/.chaindata:/tmp/stacks-blockchain-data
networks:
- backend
sidecar:
build:
context: .
restart: on-failure
environment:
PG_HOST: postgres
PG_PORT: 5432
PG_USER: postgres
PG_PASSWORD: postgres
PG_DB: stacks_core_sidecar
STACKS_SIDECAR_EVENT_PORT: 3700
STACKS_SIDECAR_EVENT_HOST: http://0.0.0.0
STACKS_SIDECAR_API_PORT: 3999
STACKS_SIDECAR_API_HOST: 0.0.0.0
STACKS_SIDECAR_DB: pg
STACKS_CORE_RPC_HOST: stacks-blockchain
STACKS_CORE_RPC_PORT: 20443
NODE_ENV: development
ports:
- "3999:3999"
volumes:
- ./stacks-blockchain/:/app/config
networks:
- backend
depends_on:
- postgres
networks:
backend:
volumes:
database-data: