-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
67 lines (62 loc) · 1.74 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
---
version: "3.3"
services:
emulator:
image: gcr.io/flow-container-registry/emulator:0.24.0
environment:
- FLOW_SERVICEPRIVATEKEY=${ADMIN_PRIVATE_KEY}
- FLOW_VERBOSE=true
- FLOW_SERVICEKEYSIGALGO=ECDSA_P256
- FLOW_SERVICEKEYHASHALGO=SHA3_256
- FLOW_INTERVAL=5s
ports:
- "3569:3569"
- "8080:8080"
fcl-wallet-adapter:
build: .
ports:
- 4000:3000
- 49153:49153
environment:
- WALLET_HOST=${WALLET_HOST}
- WALLET_PORT=${WALLET_PORT}
volumes:
- ./pages:/app/pages
- ./public:/app/public
command: npm run dev
wallet:
image: ghcr.io/flow-hydraulics/flow-wallet-api:0.7.0
restart: unless-stopped
ports:
- 3000:3000
environment:
- FLOW_WALLET_DATABASE_TYPE=psql
- FLOW_WALLET_DATABASE_DSN=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- FLOW_WALLET_ACCESS_API_HOST=emulator:3569
- FLOW_WALLET_CHAIN_ID=flow-emulator
- FLOW_WALLET_ADMIN_ADDRESS=${ADMIN_ADDRESS}
- FLOW_WALLET_ADMIN_PRIVATE_KEY=${ADMIN_PRIVATE_KEY}
- FLOW_WALLET_DEFAULT_KEY_TYPE=local
- FLOW_WALLET_ENCRYPTION_KEY=${ENCRYPTION_KEY}
- FLOW_WALLET_ENABLED_TOKENS=FUSD:${ADMIN_ADDRESS}:fusd,FlowToken:0x0ae53cb6e3f42a79:flow
- FLOW_WALLET_ADMIN_PROPOSAL_KEY_COUNT=50
depends_on:
- db
- emulator
example:
container_name: fcl-wallet-example
build:
context: ./example
target: development
volumes:
- ./example/src:/app/src
ports:
- 4001:3000
db:
image: postgres:14-alpine
expose:
- 5432
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}