-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (70 loc) · 2.34 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (70 loc) · 2.34 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
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
services:
envoy:
restart: always
container_name: stacks_envoy
image: envoyproxy/envoy:v1.39.1
network_mode: "host"
command: --base-id 3999 --config-path /etc/envoy/envoy.yaml
volumes:
- "$PWD/config/envoy.yaml:/etc/envoy/envoy.yaml:ro"
stacks-blockchain-postgres:
restart: always
image: postgres:18-trixie
container_name: stacks_postgres
command: postgres -c 'max_connections=1000' -p $STACKS_PG_PORT
shm_size: 2gb
network_mode: host
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: $STACKS_PG_PASSWORD
POSTGRES_DB: stacks_blockchain_api
security_opt:
- seccomp:${POSTGRES_SECCOMP_PROFILE:-./security/postgres-no-connect-seccomp.json}
volumes:
- ./postgresql:/var/lib/postgresql
- ./init.sql:/docker-entrypoint-initdb.d/10-init.sql:ro
- ./init-password.sh:/docker-entrypoint-initdb.d/20-init-password.sh:ro
stacks-blockchain-api:
restart: always
image: bestmike007/stacks-blockchain-api:9.1.0
container_name: stacks_api
entrypoint: "/wait"
network_mode: host
environment:
WAIT_HOSTS: "127.0.0.1:$STACKS_PG_PORT"
WAIT_COMMAND: "node ./lib/index.js"
PG_HOST: 127.0.0.1
PG_PORT: $STACKS_PG_PORT
PG_USER: stacks_blockchain_api
PG_PASSWORD: $STACKS_PG_PASSWORD
PG_DATABASE: stacks_blockchain_api
PG_SCHEMA: stacks_blockchain_api
STACKS_CORE_EVENT_HOST: 127.0.0.1
STACKS_CORE_EVENT_PORT: "3700"
MEMPOOL_STATS_DEBOUNCE_INTERVAL: 15000
MEMPOOL_STATS_DEBOUNCE_MAX_INTERVAL: 60000
STACKS_BLOCKCHAIN_API_HOST: 127.0.0.1
STACKS_BLOCKCHAIN_API_PORT: "23999"
STACKS_CORE_RPC_HOST: 127.0.0.1
STACKS_CORE_RPC_PORT: "20443"
STACKS_CHAIN_ID: "0x00000001"
STACKS_API_ENABLE_FT_METADATA: 1
STACKS_API_ENABLE_NFT_METADATA: 1
NODE_ENV: production
volumes:
- ./wait:/wait:ro
stacks-blockchain:
restart: always
image: bestmike007/stacks-blockchain:4.0.2
container_name: stacks_node
entrypoint: "/wait"
network_mode: host
environment:
WAIT_BEFORE: 3
WAIT_AFTER: 3
WAIT_HOSTS: "127.0.0.1:3700"
WAIT_COMMAND: "stacks-node start --config /srv/Stacks.toml"
volumes:
- ${STACKS_NODE_TOML:-./config/Stacks.toml}:/srv/Stacks.toml:ro
- ./stacks-node:/srv/stacks-node
- ./wait:/wait:ro