-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (66 loc) · 2.35 KB
/
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
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
##############################################################
# #
# .::::::. :: :: #
# ;;;` ` ;;; ;;; #
# '[==/[[[[,[[[[cc,,. ,ccc, ,c[[[cc, ,ccc,'[[, [[, [[' #
# ''' $$$$"""$$$ $$$cc$$$ $$""""Y$$$$$"c$$$Y$ $$$ $P #
# 88b dP888 "88o888 88888o,,od8P888 88 "88"888 #
# "YMmMY" MMM YMM "YUM" MP"YUMMMP" "YUMMP "M "M" #
# #
# .::::::..:: . .::::::. :::::::.. . : #
# ;;;` `';;, ;; ;;;' ;;`;; ;;;;``;;;; ;;,. ;;; #
# '[==/[[[[,'[[, [[, [[' ,[[ '[[, [[[,/[[[' [[[[, ,[[[[, #
# ''' $ Y$c$$$c$P c$$$cc$$$c $$$$$$c $$$$$$$$"$$$ #
# 88b dP "88"888 888 888 888b "88bo,888 Y88" 888o #
# "YMmMY" "M "M" YMM \"\"`MMMM "W" MMM M' "MMM #
# #
# ShadowSWARM Docker Compose #
# DJ Stomp 2025 #
# "No Rights Reserved" #
# #
##############################################################
services:
master:
image: djstomp/shadowswarm-app:latest
environment:
- NODE_RANK=0
- MASTER_ADDR=localhost
- MASTER_PORT=12345
- WORLD_SIZE=3
- NPROC_PER_NODE=1
deploy:
replicas: 1
placement:
constraints:
- node.hostname == gpu-ai-server
ports:
- 8501:8501
volumes:
- ~/.ssh:/root/.ssh
command: streamlit run app.py
worker1:
image: djstomp/shadowswarm-app:latest
environment:
- NODE_RANK=1
- MASTER_ADDR=192.168.17.160
- MASTER_PORT=12345
- WORLD_SIZE=3
- NPROC_PER_NODE=1
deploy:
replicas: 1
placement:
constraints:
- node.hostname == hidden-server
worker2:
image: djstomp/shadowswarm-app:latest
environment:
- NODE_RANK=2
- MASTER_ADDR=192.168.17.160
- MASTER_PORT=12345
- WORLD_SIZE=3
- NPROC_PER_NODE=1
deploy:
replicas: 1
placement:
constraints:
- node.hostname == Tesla-Server