-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
73 lines (73 loc) · 1.9 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
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
version: '3.2'
services:
backend:
image: xarcher/crowd-back-server:lastest
expose:
- 4000
ports:
- "0.0.0.0:4000:4000"
working_dir: /go-project/src/github.com/xxRanger/Percome19-Crowd-Demo/back-end
volumes:
- type: bind
source: ${BASE_PATH}/back-end/etc
target: /go-project/src/github.com/xxRanger/Percome19-Crowd-Demo/back-end/etc
environment:
- GOPATH=/go-project
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 2s
max_attempts: 10
command: go run main.go -chainPort "wss://kovan.infura.io/ws"
networks:
chain:
frontend:
working_dir: /app
environment:
- SERVER_PATH=wss://crowd.secdevgame.site:4000
- HTTP_PATH=https://crowd.secdevgame.site:4000
volumes:
- type: bind
source: ${BASE_PATH}/front-end/src/assets/config
target: /app/src/assets/config
- type: bind
source: ${BASE_PATH}/front-end/pem
target: /app/pem
image: xarcher/crowd-front:latest
depends_on:
- backend
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 2s
max_attempts: 10
ports:
- "80:8080"
- "443:8080"
command: bash -c "npm run build && http-server dist -S -C pem/cert.pem -K pem/key.pem"
client:
image: xarcher/crowd-back-client:lastest
working_dir: /go-project/src/Percome19-Crowd-Demo/client
volumes:
- type: bind
source: ${BASE_PATH}/client/etc
target: /go-project/src/Percome19-Crowd-Demo/client/etc
environment:
- GOPATH=/go-project
depends_on:
- backend
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 2s
max_attempts: 10
command: go run main.go -addr "crowd.secdevgame.site:4000" -number 20
networks:
chain:
networks:
chain:
volumes:
backend: