-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.13 KB
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
version: '3.8'
services:
# FileFlow Server
fileflow-server:
build:
context: .
dockerfile: Dockerfile
container_name: fileflow-server
ports:
- "8080:8080"
command: ["./server", "--port", "8080"]
networks:
- fileflow-network
restart: unless-stopped
# FileFlow Client 1 (Example)
fileflow-client1:
build:
context: .
dockerfile: Dockerfile
container_name: fileflow-client1
depends_on:
- fileflow-server
volumes:
- ./client1-shared:/root/shared
command: ["./client", "--server", "fileflow-server:8080"]
networks:
- fileflow-network
stdin_open: true
tty: true
restart: unless-stopped
# FileFlow Client 2 (Example)
fileflow-client2:
build:
context: .
dockerfile: Dockerfile
container_name: fileflow-client2
depends_on:
- fileflow-server
volumes:
- ./client2-shared:/root/shared
command: ["./client", "--server", "fileflow-server:8080"]
networks:
- fileflow-network
stdin_open: true
tty: true
restart: unless-stopped
networks:
fileflow-network:
driver: bridge