-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
85 lines (79 loc) · 1.99 KB
/
docker-compose.dev.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3.7'
services:
stacks-blockchain:
image: blockstack/stacks-blockchain:2.05.0.2.2
command: /bin/stacks-node start --config /src/stacks-node/Config.toml
ports:
- '20443:20443'
- '20444:20444'
volumes:
- ./stacks-node/persistent-data/stacks-blockchain:/root/stacks-node/data
- ./stacks-node/config:/src/stacks-node
networks:
- stacks-blockchain
stacks-blockchain-api:
image: blockstack/stacks-blockchain-api:4.1.0
environment:
NODE_ENV: production
PG_HOST: postgres
PG_PORT: 5432
PG_USER: postgres
PG_PASSWORD: postgres
PG_DATABASE: postgres
STACKS_CHAIN_ID: 0x00000001
V2_POX_MIN_AMOUNT_USTX: 90000000260
STACKS_CORE_EVENT_PORT: 3700
STACKS_CORE_EVENT_HOST: 0.0.0.0
STACKS_BLOCKCHAIN_API_PORT: 3999
STACKS_BLOCKCHAIN_API_HOST: 0.0.0.0
STACKS_BLOCKCHAIN_API_DB: pg
STACKS_CORE_RPC_HOST: stacks-blockchain
STACKS_CORE_RPC_PORT: 20443
ports:
- '3700:3700'
- '3999:3999'
networks:
- stacks-blockchain
depends_on:
- postgres
postgres:
image: postgres:14
restart: always
ports:
- '5432:5432'
volumes:
- ./stacks-node/persistent-data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_PORT: 5432
networks:
- stacks-blockchain
redis:
image: 'redis:5.0'
command: 'redis-server --requirepass hello'
ports:
- '6379:6379'
networks:
- stacks-blockchain
api:
build:
context: ./api
dockerfile: Dockerfile.dev
volumes:
- ./api:/usr/src/app
- /usr/src/app/node_modules/
ports:
- '4000:4000'
environment:
DATABASE_URL: 'postgresql://postgres:postgres@postgres:5432/postgres?schema=public'
networks:
- stacks-blockchain
depends_on:
- postgres
- redis
volumes:
db_data:
networks:
stacks-blockchain: