-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
37 lines (35 loc) · 1014 Bytes
/
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
version: '3'
services:
# Runs the zkproof-server
zkproof-server:
network_mode: 'host'
build:
context: .
dockerfile: ./builds/Dockerfile.server
container_name: zkproof-server
ports:
- '50051:50051'
restart: unless-stopped
# Runs a client which will register the user testUser with password 1
zkproof-client-success:
network_mode: 'host'
build:
context: .
dockerfile: ./builds/Dockerfile.client
container_name: zkproof-client-success
depends_on:
- zkproof-server
entrypoint: ['./zkproof-client']
command: ['-host', '127.0.0.1']
# Runs a client which will try to log in as user testUser with password 2
# SHOULD FAIL!
zkproof-client-failure:
network_mode: 'host'
build:
context: .
dockerfile: ./builds/Dockerfile.client
container_name: zkproof-client-failure
depends_on:
- zkproof-client-success
entrypoint: ['./zkproof-client']
command: ['-host', '127.0.0.1', '-password', '2']