forked from AlDemion/torrentmonitor-dockerized
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv
31 lines (26 loc) · 738 Bytes
/
env
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
# docker image name: torrentmonitor | armhf-torrentmonitor
IMAGENAME=torrentmonitor
# path to dockerfile: Dockerfile | Dockerfile-armhf
DOCKERFILE=Dockerfile
# host variables
TORRENTS=/tmp/torrentmonitor-torrents
DB=/tmp/torrentmonitor-db
HTTP_PORT=80
LISTEN_PORT=8080
# change it for different container name
CONTAINER_NAME=torrentmonitor
RESTART_POLICY=always
CRON_TIMEOUT="0 * * * *"
PHP_TIMEZONE="UTC"
PHP_MEMORY_LIMIT="512M"
# Makefile required
VOLUMES=\
-v $(TORRENTS):/data/htdocs/torrents \
-v $(DB):/data/htdocs/db
PORTS=\
-p $(LISTEN_PORT):$(HTTP_PORT)
RESTART=--restart=$(RESTART_POLICY)
ENVIRONMENT=\
-e CRON_TIMEOUT=$(CRON_TIMEOUT) \
-e PHP_TIMEZONE=$(PHP_TIMEZONE) \
-e PHP_MEMORY_LIMIT=$(PHP_MEMORY_LIMIT)