-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
131 lines (127 loc) · 3.92 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: '3.6'
services:
crypto_gateway:
restart: always
build: './gateway'
network_mode: "host"
depends_on:
- crypto_engine
- geth-eth-node
environment:
ETH_RPC_ENDPOINT: ${ETH_RPC_ENDPOINT:-http://127.0.0.1:8555}
BCOIN_API_KEY: ${BCOIN_API_KEY}
CRYPTOPAY_BTC_XPUB: ${CRYPTOPAY_BTC_XPUB}
CRYPTOPAY_ETH_XPUB: ${CRYPTOPAY_ETH_XPUB}
CRYPTOPAY_SECRET: ${CRYPTOPAY_SECRET:-secret}
BCOIN_ENDPOINT: ${BCOIN_ENDPOINT:-http://127.0.0.1:18332}
BCOIN_WALLET_ENDPOINT: ${BCOIN_WALLET_ENDPOINT:-http://127.0.0.1:18334}
UNCHAINED_CRYPTOPAY_WEBHOOK_PATH: ${UNCHAINED_CRYPTOPAY_WEBHOOK_PATH:-http://127.0.0.1:4010/payment/cryptopay}
UNCHAINED_CRYPTOPAY_PRICING_WEBHOOK_PATH: ${UNCHAINED_CRYPTOPAY_PRICING_WEBHOOK_PATH:-http://127.0.0.1:4010/pricing/cryptopay}
UNCHAINED_GRAPHQL_ENDPOINT: ${UNCHAINED_GRAPHQL_ENDPOINT:-http://127.0.0.1:4010/graphql}
REDIS_PORT: ${REDIS_PORT:-6379}
REDIS_HOST: ${REDIS_HOST:-127.0.0.1}
env_file:
- .env
crypto_storefront:
build: ./storefront
ports:
- "3000:3000"
depends_on:
- crypto_engine
restart: on-failure
environment:
UNCHAINED_ENDPOINT: http://crypto_engine:4010/graphql
crypto_engine:
build: ./engine
ports:
- "4010:4010"
environment:
MONGO_URL: ${MONGO_URL:-mongodb://my-mongoDB}
ROOT_URL: ${ROOT_URL:-http://localhost:4010}
EMAIL_WEBSITE_NAME: ${EMAIL_WEBSITE_NAME:-Unchained}
EMAIL_FROM: ${EMAIL_FROM:-noreply@unchained.local}
UNCHAINED_SEED_PASSWORD: ${UNCHAINED_SEED_PASSWORD:-password}
EMAIL_WEBSITE_URL: ${EMAIL_WEBSITE_URL:-http://localhost:4010}
CRYPTOPAY_SECRET: ${CRYPTOPAY_SECRET:-secret}
CRYPTOPAY_BTC_XPUB: ${CRYPTOPAY_BTC_XPUB}
CRYPTOPAY_ETH_XPUB: ${CRYPTOPAY_ETH_XPUB}
CRYPTOPAY_WEBHOOK_PATH: ${CRYPTOPAY_WEBHOOK_PATH:-/payment/cryptopay}
CRYPTOPAY_PRICING_WEBHOOK_PATH: ${CRYPTOPAY_PRICING_WEBHOOK_PATH:-/pricing/cryptopay}
env_file:
- .env
healthcheck:
test: >-
curl -XPOST http://localhost:4010/graphql -H 'content-type: application/json' --data-raw '{"operationName":null,"variables":{},"query":"{shopInfo{_id}}"}' || exit 1
start_period: 3s
timeout: 3s
depends_on:
- my-mongoDB
my-mongoDB:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- db-data:/data/db
- mongo-config:/data/configdb
redis:
image: redis:6.2-alpine
restart: on-failure
ports:
- '6379:6379'
command: redis-server --loglevel debug
volumes:
- cache:/data
geth-eth-node:
image: ethereum/client-go
restart: on-failure
ports:
- "8555:8555"
- "8551:8551"
command:
- --goerli
- --http
- --http.addr=0.0.0.0
- --http.vhosts=*
- --http.corsdomain=*
- --authrpc.addr=0.0.0.0
- --authrpc.port=8551
- --authrpc.vhosts=*
- --syncmode=snap
- --http.port=8555
- --ipcdisable
volumes:
- geth-goerli:/.goerli
- $HOME/ethereum:/root
nimbus-eth-consensus-node:
image: statusim/nimbus-eth2:multiarch-v22.7.0
restart: unless-stopped
stop_grace_period: 1m
ports:
- 9000:9000/tcp
- 9000:9000/udp
- 127.0.0.1:9190:9190/tcp
- 127.0.0.1:8008:8008/tcp
# - "127.0.0.1:5052:5052"
command:
- --network=prater
- --data-dir=/home/user/nimbus-eth2/build/data/shared_prater_0
- --web3-url=ws://geth-eth-node:8551
# --jwt-secret=/root/.geth/.ethereum/prater/geth/jwtsecret
- --log-level=info
- --tcp-port=9000
- --udp-port=9000
- --rpc
- --rpc-address=0.0.0.0
- --rpc-port=9190
- --metrics
- --metrics-address=0.0.0.0
- --metrics-port=8008
volumes:
- $HOME/.nimbus:/home/user/nimbus-eth2/build/data
- $HOME/ethereum:/root/.geth
volumes:
db-data: {}
mongo-config: {}
cache:
driver: local
geth-goerli: {}