Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

thiagofigueiro
Copy link

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 the Dockerfile 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.

&& rm -rf /var/lib/apt/lists/*

ARG TZ
ENV TZ=${TZ:-America/New_York}
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant