-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a docker-compose file #15
base: master
Are you sure you want to change the base?
Conversation
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG TZ | ||
ENV TZ=${TZ:-America/New_York} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can actually remove the TZ environment variable since it's only used for the build. I might do this in another MR.
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ | ||
&& dpkg-reconfigure -f noninteractive tzdata | ||
|
||
RUN pip install requests loguru pillow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this because it's usual to have the setup steps before the CMD
.
Hi, @Christofo. Thanks for sharing this project.
I decided not to run the docker containers on the Synology device since I have a better server available on my network. The setup is the same, other than the network address user in the Synology webhook.
This pull request contains my
docker-compose.yml
and other related files. While I was at it, I updated theDockerfile
to parametrise the time zone (can still be improved but it's a start), and to update the OS packages when building.I intend to add an automated setup script to your project so the Synology configuration doesn't need to be manually done. As part of that I'd like to add some unit tests and CI configuration to make sure I'm not breaking anything.
Please let me know if you would like me to send these contributions back to your repository.