forked from FuelLabs/swayswap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.39 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
version: "3"
services:
swayswap-fuel-core:
platform: linux/amd64
container_name: "swayswap-fuel-core-${ENVIRONMENT:-development}"
environment:
MIN_GAS_PRICE: ${GAS_PRICE}
# This is the private key of the consensus.PoA.signing_key in the chainConfig.json
# this key is responsible for validating the transactions
CONSENSUS_KEY: 0xa449b1ffee0e2205fa924c6740cc48b3b473aa28587df6dab12abc245d1f5298
build: ./fuel-core
ports:
- "${FUEL_CORE_PORT:-4000}:4000"
volumes:
- swayswap-fuel-core-db:/mnt/db
healthcheck:
test: curl --fail http://localhost:4000/health || exit 1
interval: 1s
timeout: 5s
retries: 10
swayswap-faucet:
platform: linux/amd64
container_name: "swayswap-faucet-${ENVIRONMENT:-development}"
environment:
MIN_GAS_PRICE: ${GAS_PRICE}
WALLET_SECRET_KEY: ${WALLET_SECRET}
DISPENSE_AMOUNT: ${DISPENSE_AMOUNT}
FUEL_NODE_URL: http://swayswap-fuel-core-${ENVIRONMENT:-development}:4000/graphql
# Other configurations can be found at;
# https://github.com/FuelLabs/faucet#configuration
image: ghcr.io/fuellabs/faucet:v0.5.0
ports:
- "${FUEL_FAUCET_PORT:-4040}:3000"
links:
- swayswap-fuel-core
depends_on:
swayswap-fuel-core:
condition: service_healthy
volumes:
swayswap-fuel-core-db:
name: "fuel-core-db-${ENVIRONMENT:-development}"