-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathdocker-compose.client.yml
87 lines (81 loc) · 2.11 KB
/
docker-compose.client.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3.5'
# Use this script for running up nightfall_3 client in 'developer' mode with local
# bindings. See the readme for more information.
services:
client:
image: public.ecr.aws/m0t3e1j9/nightfall-client:testnet
volumes:
- type: volume
source: build
target: /app/build
networks:
- nightfall_network
ports:
- 8080:80
depends_on:
- worker
- rabbitmq
- mongodb
environment:
LOG_LEVEL: ${LOG_LEVEL:-debug}
ZOKRATES_WORKER_HOST: worker
OPTIMIST_HOST: ${OPTIMIST_HOST:-optimist}
OPTIMIST_PORT: ${OPTIMIST_PORT:-80}
MONGO_URL: ${CLIENT_MONGO_URL:-mongodb://mongodb:27017}
RABBITMQ_HOST: ${RABBITMQ_HOST:-amqp://rabbitmq}
RABBITMQ_PORT: ${RABBITMQ_PORT:-5672}
ENABLE_QUEUE: ${ENABLE_QUEUE:-1}
USE_STUBS: ${USE_STUBS:-false} # make sure this flag is the same as in deployer service
BLOCKCHAIN_URL: wss://${BLOCKCHAIN_WS_HOST}
USE_EXTERNAL_NODE: 'true'
AUTOSTART_RETRIES: 600
ETH_NETWORK: ${ETH_NETWORK}
CONTRACT_FILES_URL: ${CONTRACT_FILES_URL}
BLOCKCHAIN_WS_HOST: ${BLOCKCHAIN_WS_HOST}
command: ['npm', 'run', 'dev']
rabbitmq:
image: rabbitmq
ports:
- '15674:15674'
- '5672:5672'
networks:
- nightfall_network
mongodb:
image: mongo:4.4.1-bionic
hostname: mongodb
ports:
- 27017:27017
networks:
- nightfall_network
command: --quiet
volumes:
- type: volume
source: mongodb
target: /data/db
worker:
image: public.ecr.aws/m0t3e1j9/nightfall-worker:testnet
volumes:
- type: volume
source: proving_files
target: /app/output/
depends_on:
- rabbitmq
networks:
- nightfall_network
environment:
LOG_LEVEL: ${LOG_LEVEL:-debug}
MPC: ${MPC:-true}
ETH_NETWORK: ${ETH_NETWORK}
CIRCUIT_FILES_URL: ${CIRCUIT_FILES_URL}
volumes:
mongodb:
proving_files:
build:
networks:
nightfall_network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24
gateway: 172.16.238.1