-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (52 loc) · 1.16 KB
/
docker-compose.yaml
File metadata and controls
53 lines (52 loc) · 1.16 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
version: '3'
services:
front:
build: ./front
tty: yes
container_name: offtx-front
volumes:
- ./front:/home/node/app
- /home/node/app/node_modules
environment:
REACT_APP_PROVIDER_SOCKET: "ws://localhost:9944"
REACT_APP_API_ENDPOINT: "http://localhost:3000"
ports:
- 3001:3001
networks:
off_net:
ipv4_address: 172.32.10.11
api:
container_name: offtx-api
tty: true
build:
context: ./api
ports:
- 3000:3000
volumes:
- ./api:/home/node/app
- /home/node/app/node_modules
environment:
PROVIDER_SOCKET: "ws://offtx-substrate:9944"
SUBSTRATE_RPC: "http://offtx-substrate:9933"
networks:
off_net:
ipv4_address: 172.32.10.12
substrate:
build: ./substrate
container_name: offtx-substrate
volumes:
- ./substrate/start.sh:/home/ubuntu/start.sh
ports:
- 9944:9944 # ws - substrate
- 9933:9933 # http - substrate
tty: yes
networks:
off_net:
ipv4_address: 172.32.10.13
networks:
off_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.32.10.0/24