synzen / MonitoRSS

MonitoRSS RSS bot (formerly known as Discord.RSS) with customizable feeds. https://monitorss.xyz
https://monitorss.xyz
MIT License
1.07k stars 237 forks source link

Docker step by step installation guide #178

Closed Peterr-K closed 4 years ago

Peterr-K commented 4 years ago

Hi please add docker steb by step guide, for example I have these hints and question:

thanks

synzen commented 4 years ago

Hi,

If you use Docker, you're expected to already understand the fundamentals of Docker. If you don't yet have a fundamental understanding of Docker, I suggest you go through https://docs.docker.com/get-started/ and optionally https://docs.docker.com/compose/ for Docker Compose.

To more directly answer your questions:

  1. You need to recreate your container when either the new image is published, or when your local files are updated. This link details the process for file changes: https://stackoverflow.com/questions/41322541/rebuild-docker-container-on-file-changes
  2. docker-compose is an alternative to docker. See https://docs.docker.com/compose/ for a better understanding of what docker-compose is.
  3. Docker does not inherently use an env file that is injected into your container - you would have to use a custom solution if you want to go that route. Alternatively, you can set environment variables through the --env or e CLI argument for docker - see https://docs.docker.com/engine/reference/commandline/run/ for more information. If you choose to use docker-compose, the necessary env variables are already written in for you in docker-compose.yml - you can add more to your liking.