Add Docker support
This commit is contained in:
parent
a8888c5c86
commit
32e69e6626
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
FROM romeoz/docker-apache-php:7.3
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
RUN cp /app/announce.php /var/www/app/
|
|
@ -66,7 +66,7 @@ define('__NO_SEED_P2P', true);
|
||||||
* On Linux, you should use /dev/shm as it is very fast.
|
* On Linux, you should use /dev/shm as it is very fast.
|
||||||
* On Windows, you will need to change this value to some other valid path such as C:/Peers.txt
|
* On Windows, you will need to change this value to some other valid path such as C:/Peers.txt
|
||||||
*/
|
*/
|
||||||
define('__LOCATION_PEERS', 'peers.txt');
|
define('__LOCATION_PEERS', '/var/www/app/data/peers.txt');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Should we enable short announces?
|
* Should we enable short announces?
|
||||||
|
|
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
version: "3.5"
|
||||||
|
services:
|
||||||
|
tracker:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- 8081:80
|
||||||
|
volumes:
|
||||||
|
- tracker-peers-data:/var/www/app/data/
|
Loading…
Reference in New Issue
Block a user