-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker.example.txt
More file actions
37 lines (29 loc) · 873 Bytes
/
Copy pathdocker.example.txt
File metadata and controls
37 lines (29 loc) · 873 Bytes
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
docker-compose.yml
version: '3'
services:
trakt-list:
container_name: trakt-list
volumes:
- '/volume1/docker/trakt-list:/home/trakt-list'
build: ./trakt-list
image: 'trakt-list'
environment:
- PUID=1026
- PGID=100
- TZ=Europe/Vilnius
restart: unless-stopped
Dockerfile
FROM python:alpine
WORKDIR /home/trakt-list
VOLUME /home/trakt-list
RUN pip install requests plexapi
RUN apk update \
&& apk add gcc musl-dev sqlite youtube-dl curl bash
COPY requirements.txt /home/trakt-list
RUN pip install -r requirements.txt
COPY trakt-cron /home/trakt-list
RUN chmod 0644 /home/trakt-list/trakt-cron
RUN crontab /home/trakt-list/trakt-cron
RUN touch /var/log/cron.log
# Running crond
CMD crond -l 2 && tail -f /var/log/cron.log