This repository was archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (71 loc) · 2.34 KB
/
docker-compose.yml
File metadata and controls
74 lines (71 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
71
72
73
74
### docker-compose network for fast and easy development and testing on the demo-client ###
#
# The default `docker-compose up` spins up prototype-services (incl. database) and a
# local devnet, to which the demo-client connects. The demo-client will build (`yarn start`)
# and launch. Once you see
# ```
# Compiled successfully!
# You can now view kilt-demo-client in the browser.
# ```
# in your console, you can access the demo-client on <http://localhost:3001/>.
# To map to a different port, start with `docker-compose run -p 1234:3001 demo-client`
# instead (in this example, you could access the client on <http://localhost:1234/>).
# You can also build and run the demo-client directly on your machine but still connect
# to containerized prototype-services and mashnet-node:
# ```
# docker-compose up services mashnet-node
# yarn install
# yarn start
# ```
# In any scenario, use `docker-compose down -v` for teardown, which removes containers
# and purges the data volumes, resetting all state.
version: '3.4'
services:
mongodb:
image: mongo:latest
environment:
- MONGODB_DATABASE=registry
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
ports:
- 27017:27017
services:
image: kiltprotocol/demo-services:develop
environment:
- NODE_ENV=docker-compose
- MONGODB_HOST=mongodb://mongodb?authSource=admin
- MONGODB_USER=mongoadmin
- MONGODB_PASS=secret
- FAUCET_ACCOUNT=0xcdfd6024d2b0eba27d54cc92a44cd9a627c69b2dbda15ed7e58085425119ae03
- BOOT_NODE_ADDRESS=ws://mashnet-node:9944
ports:
- 3001:3000
depends_on:
- mongodb
- mashnet-node
mashnet-node:
image: kiltprotocol/mashnet-node
ports:
- 9944:9944
command: --dev --ws-port 9944 --ws-external
demo-client:
build:
context: .
target: develop
args:
- NODE_VERSION=14
volumes:
- ./src:/app/src
environment:
- REACT_APP_SERVICE_HOST=//127.0.0.1:3001
- REACT_APP_NODE_HOST=ws://127.0.0.1:9944
- REACT_APP_FAUCET_URL=http://127.0.0.1:3002
# if you experience issues where the watcher does not trigger rebuilds
# when changing files in src/ the following option may help
#- CHOKIDAR_USEPOLLING=true
ports:
- 3000:3000
command: yarn start
depends_on:
- services
- mashnet-node