This is a multi-container app based on documentation for docker compose. The app pulls a ramdon meme from the following reddit api. One container serves as a redis database to cache the total amount of memes shown to the user. The front end of the app is built using flask, html, and css; it is hosted on a Linux Alpine container.
To start, you need to have Docker Engine and Docker Compose on your machine. You can either:
- Install Docker Desktop which includes both Docker Engine and Docker Compose
- Install Docker Engine and Docker Compose as standalone binaries
You don't need to install Python or Redis, as both are provided by Docker images.
From your project directory, start the application by running:
docker compose up
Enter http://localhost:8000/ in a browser to see the application running. Otherwise, if this doesn't resolve, you can also try http://127.0.0.1:8000.
If the connection is successful, you should see a meme, the subreddit it is taken from, and the amount of memes you have seen thus far. To see a new meme, you can refresh the browser.
Distributed under the MIT License. See LICENSE
for more information.