forked from onflow/kitty-items
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
94 lines (94 loc) · 2.37 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
version: "3"
services:
web:
profiles:
- dev
- testnet
build:
context: ./
dockerfile: ./web/Dockerfile.dev
ports:
- 3001:3001
volumes:
- "./web:/web"
- "/web/node_modules"
environment:
- CHAIN_ENV=${CHAIN_ENV}
- FAUCET_ADDRESS=${FAUCET_ADDRESS}
- ACCESS_API_WEB=${ACCESS_API_WEB}
- WALLET_DISCOVERY=${WALLET_DISCOVERY}
- FUNGIBLE_TOKEN_ADDRESS=${FUNGIBLE_TOKEN_ADDRESS}
- NON_FUNGIBLE_TOKEN_ADDRESS=${NON_FUNGIBLE_TOKEN_ADDRESS}
- FUSD_TOKEN_ADDRESS=${FUSD_TOKEN_ADDRESS}
- API_URL=${API_URL}
- FLOW_ADDRESS=${FLOW_ADDRESS}
- CHOKIDAR_USEPOLLING=true
depends_on:
- api
api:
profiles:
- dev
- testnet
- api
build:
context: ./
dockerfile: ./api/Dockerfile.dev
ports:
- "3000:3000"
volumes:
- "./api:/api"
- "/api/node_modules"
links:
- "db:database"
environment:
- MINTER_ADDRESS=${FLOW_ADDRESS}
- MINTER_PRIVATE_KEY=${FLOW_PRIVATE_KEY}
- MINTER_ACCOUNT_KEY_INDEX=0
- FUNGIBLE_TOKEN_ADDRESS=${FUNGIBLE_TOKEN_ADDRESS}
- NON_FUNGIBLE_TOKEN_ADDRESS=${NON_FUNGIBLE_TOKEN_ADDRESS}
- FUSD_TOKEN_ADDRESS=${FUSD_TOKEN_ADDRESS}
- FLOW_ACCESS_API_URL=${ACCESS_API_BACKEND}
- DATABASE_URL=${DB_URL}
- MIGRATION_PATH=./src/migrations
- BLOCK_WINDOW=1
- CHOKIDAR_USEPOLLING=true
depends_on:
- db
dev-wallet:
profiles:
- dev
image: ghcr.io/onflow/fcl-dev-wallet:latest
ports:
- "8701:8701"
environment:
- FLOW_ACCESS_NODE=${ACCESS_API_BACKEND}
- FLOW_ACCOUNT_ADDRESS=${FLOW_ADDRESS}
- FLOW_ACCOUNT_KEY_ID=0
- FLOW_ACCOUNT_PRIVATE_KEY=${FLOW_PRIVATE_KEY}
- FLOW_ACCOUNT_PUBLIC_KEY=${FLOW_PUBLIC_KEY}
depends_on:
- emulator
emulator:
profiles:
- dev
- api
image: gcr.io/flow-container-registry/emulator:v0.22.0
ports:
- "8080:8080"
- "3569:3569"
environment:
- FLOW_SERVICEPRIVATEKEY=${FLOW_PRIVATE_KEY}
- FLOW_SERVICEKEYSIGALGO=ECDSA_P256
- FLOW_SERVICEKEYHASHALGO=SHA3_256
- FLOW_VERBOSE=true
db:
profiles:
- dev
- testnet
image: postgres:13-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_DB=kittyitems
- POSTGRES_USER=kittyuser
- POSTGRES_PASSWORD=kittypassword