-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
57 lines (57 loc) · 1.63 KB
/
docker-compose.yaml
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
version: '3'
services:
parent:
image: "overlaytoken:0.1"
volumes:
- "./substrate-overlay-token/target/release/substrate-overlay-token:/usr/local/bin/substrate-overlay-token"
- "./substrate-overlay-token/docker/parent.sh:/parent.sh"
entrypoint: bash
command: parent.sh
child:
image: "overlaytoken:0.1"
volumes:
- "./substrate-overlay-token/target/release/substrate-overlay-token:/usr/local/bin/substrate-overlay-token"
- "./substrate-overlay-token/docker/child.sh:/child.sh"
entrypoint: bash
command: child.sh
nginx:
image: "nginx"
volumes:
- "./default.conf:/etc/nginx/conf.d/default.conf"
- "/etc/letsencrypt/live/{YOUR_DOMAIN}/fullchain.pem:/etc/letsencrypt/live/{YOUR_DOMAIN}/fullchain.pem"
- "/etc/letsencrypt/live/{YOUR_DOMAIN}/privkey.pem:/etc/letsencrypt/live/{YOUR_DOMAIN}/privkey.pem"
ports:
- "9944:9944"
- "9945:9945"
bridge:
image: "node"
volumes:
- "./substrate-overlay-token-bridge:/app"
environment:
PARENT: "wss://{YOUR_DOMAIN}:9944"
CHILD: "wss://{YOUR_DOMAIN}:9945"
working_dir: "/app"
entrypoint: bash
command: env.sh
ui-parent:
image: "node"
volumes:
- "./substrate-overlay-token-ui:/app"
ports:
- "8000:8000"
environment:
NODE: "wss://{YOUR_DOMAIN}:9944"
working_dir: "/app"
entrypoint: bash
command: env.sh
ui-child:
image: "node"
volumes:
- "./substrate-overlay-token-ui:/app"
ports:
- "8001:8000"
environment:
NODE: "wss://{YOUR_DOMAIN}:9945"
working_dir: "/app"
entrypoint: bash
command: env.sh