forked from commune-ai/commune
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·53 lines (36 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
executable file
·53 lines (36 loc) · 1.29 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.2"
services:
commune:
network_mode: host
# image: commune:latest
container_name: commune
build: ./
shm_size: '100gb' # for the shared memory size
# expose ports for the frontend
volumes:
# COMMUNE VOLUME MOUNTS
- ./commune:/commune/commune
- ./subspace/pallets:/commune/subspace/pallets
- ./frontend:/commune/frontend
# LOCAL COMMUNE MOUNTS AND FILES
- ./Makefile:/commune/Makefile
- ./setup.py:/commune/setup.py
- ./commune.sh:/commune/commune.sh
- ./requirements.txt:/commune/requirements.txt
- ./README.md:/commune/README.md
- ./scripts:/commune/scripts
# DOCKER MOUNTS TO CONTROL DOCKER FROM WITHIN THE CONTAINER
- /var/run/docker.sock:/var/run/docker.sock # MOUNT THE DOCKER SOCKET
- /usr/bin/docker:/usr/bin/docker # MOUNT THE DOCKER BINARY
# FILE SYSTEM MOUNTS
- /tmp:/tmp # MOUNT THE TEMPORARY FILE
- ~/.commune:/root/.commune
- ~/.bittensor:/root/.bittensor
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
command: bash -c "cd /commune; chmod +x /commune/scripts/*;/commune/scripts/startup.sh;"