This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose-dev.yml
72 lines (65 loc) · 2.27 KB
/
docker-compose-dev.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
version: '2'
services:
rcgechvalidator1:
build:
context: ./validateur_api
dockerfile: Dockerfile
environment:
- TX_HEX=6a3df89f5febb62fda72fe81d56023bddf1105a7f4f5362bdf14f1df1340b167
- WS_URI=https://rinkeby.infura.io/v3/3915211d82c546beaf5336b3c9b9b99a
- LOCKED_ADDR=0x533a245f03a1a46cacb933a3beef752fd8ff45c3,0x3ab05401c0d9483dbeb108b741248bb8e82e323d,0x88ab30749e745a66262275e0489373d3e0781e74
- TIMEOUT=1653618789,1653618789,1653618789
- http_proxy=http://squid.forward:3128
- https_proxy=http://squid.forward:3128
working_dir: /app
command: "/app/api --host 0.0.0.0 --port=8090"
rcgechvalidator2:
build:
context: ./validateur_api
dockerfile: Dockerfile
environment:
- TX_HEX=6a3df89f5febb62fda72fe81d56023bddf1105a7f4f5362bdf14f1df1340b167
- WS_URI=https://rinkeby.infura.io/v3/3915211d82c546beaf5336b3c9b9b99a
- LOCKED_ADDR=0x533a245f03a1a46cacb933a3beef752fd8ff45c3,0x3ab05401c0d9483dbeb108b741248bb8e82e323d,0x88ab30749e745a66262275e0489373d3e0781e74
- TIMEOUT=1653618789,1653618789,1653618789
- http_proxy=http://squid.forward:3128
- https_proxy=http://squid.forward:3128
working_dir: /app
command: "/app/api --host 0.0.0.0 --port=8090"
webapp1:
build:
context: ./validateur_webapp
environment:
- API_HOST=rcgechvalidator1:8090 # API host, is equal to the <api container name>:<port>
- MAIN_URI=ctivalidator
- CSRF_TIME_LIMIT=360
working_dir: /app
command: /app/webapp
volumes:
- "./myservice.cert:/app/myservice.cert"
- "./myservice.key:/app/myservice.key"
webapp2:
build:
context: ./validateur_webapp
environment:
- API_HOST=rcgechvalidator2:8090 # API host, is equal to the <api container name>:<port>
- MAIN_URI=ctivalidator
- CSRF_TIME_LIMIT=360
working_dir: /app
command: /app/webapp
volumes:
- "./myservice.cert:/app/myservice.cert"
- "./myservice.key:/app/myservice.key"
nginx.balancer:
build:
context: ./nginx
dockerfile: Dockerfile-dev
container_name: nginx.balancer
links:
- webapp1
- webapp2
ports:
- "0.0.0.0:8001:8080"
squid.forward:
image: wernight/squid
container_name: squid.forward