aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/dev/usage.md
blob: 319d7db3054d78217baf41d0cac089661517f0ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
### Usage
1. Build the image:
	```
	docker build -t my_peertube_dev .
	```
1. Start the container:
	```
	docker run -d -i -p 3000:3000 -p 9000:9000 --name peertube my_peertube_dev
	```
	This will create a new Docker volume containing PeerTube sources.

1. Start PeerTube inside the container:
	```
	docker exec -it peertube npm run dev
	```
1. In another window, find the path to the Docker volume
	```
	docker inspect peertube | less +/Mounts
	```
	You can now make changes to the files. They should be automatically recompiled.