This repository was archived by the owner on Jan 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.51 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
### docker-compose network for fast and easy development and testing of prototype services ###
#
# The default `docker-compose up` spins up a mongo database and a local devnet
# to which the services connect. The protype-services will build (`yarn start`)
# and launch. Once you see `Nest application successfully started` in your console,
# you can connect to the services on <http://localhost:3000/>.
# To map to a different port, start with `docker-compose run -p 1234:3001 services`
# instead (in this example, you could access the services on <http://localhost:1234/>).
# You can also build and run the services directly on your machine but still connect
# to containerized database and mashnet-node:
# ```
# docker-compose up mongodb 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'
services:
mongodb:
image: mongo:latest
environment:
- MONGODB_DATABASE=registry
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
ports:
- 27017:27017
mashnet-node:
image: kiltprotocol/mashnet-node:develop
ports:
- 9944:9944
command: --dev --ws-port 9944 --ws-external
services:
build: .
image: local/prototype-services
env_file:
- environment/docker-compose.env
volumes:
- ./src:/app/src
command: yarn start
ports:
- 3000:3000
links:
- mongodb
- mashnet-node