-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.05 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
version: '3'
services:
build:
image: blockchain-build
build:
context: .
dockerfile: Dockerfile-build
volumes:
# uid and gid in the Dockerfile-build must match the system user uid and gid
- "${HOME}/.stack:/home/buildusr/.stack"
- .:/workspace
user: "1000"
entrypoint:
- /bin/sh
- -c
- 'stack -v --install-ghc clean && (cd blockchain-ui-fe && npm install && ng build --env=prod) && stack-build upx'
beacon-node:
image: carbolymer/blockchain-node
build:
context: .
dockerfile: Dockerfile-run
hostname: beacon-node
drone-node:
image: carbolymer/blockchain-node
build:
context: .
dockerfile: Dockerfile-run
depends_on:
- beacon-node
ui:
image: carbolymer/blockchain-node
build:
context: .
dockerfile: Dockerfile-run
restart: on-failure
depends_on:
- beacon-node
ports:
- "8000:8000"
entrypoint:
- /usr/local/bin/blockchain-ui-exe
- "8000"
- "http://beacon-node:8000/"
- "/srv"