-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (37 loc) · 955 Bytes
/
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
version: '3.8'
services:
grpc-server:
build:
context: .
dockerfile: Dockerfile.grpc-server
container_name: grpc-server
ports:
- "50051:50051" # Map the gRPC server port
networks:
- rustle-network
volumes:
- ./sample:/app/sample # Mount sample directory to keep data persistent
environment:
SERVER_ADDRESS: 0.0.0.0:50051
cli:
build:
context: .
dockerfile: Dockerfile.cli
container_name: rustle-cli
depends_on:
- grpc-server # Ensure the gRPC server starts first
networks:
- rustle-network
volumes:
- ./sample:/app/sample # Mount the sample directory
- ./test.sh:/app/test.sh
environment:
SERVER_ADDRESS: grpc-server:50051
command: tail -f /dev/null # This keeps the container running
networks:
rustle-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.19.0.0/16