Docker
Setup for Docker#
New to Docker? If you haven't used Docker before and plan to run the app on your personal PC or laptop, check the other guides to set up the app natively without Docker.
-
Clone the repository:
git clone https://github.com/mihail-pop/media-journal -
Open the
docker-compose.ymlfile in a text editor, uncomment and update theTZvariable to your timezone.
(Format is usuallyContinent/CitylikeEurope/LondonorAmerica/New_York. You can find a clean list of supported timezones here). Otherwise, it will default to UTC. -
Open a terminal in the project folder and start the app with:
The application will be available at http://localhost:8090.docker-compose up -d -
Inside the app, navigate to Settings → API Keys.
You will need to add your own API keys. In that section there are instructions on how to obtain them.
Remote Access#
If you plan to use a tool like Cloudflare Tunnels to access the app remotely, you need to whitelist your domain name.
Open your docker-compose.yml file and uncomment the CSRF_TRUSTED_ORIGINS line. Add your remote URL there:
environment:
- CSRF_TRUSTED_ORIGINS=https://your-domain.com
Authentication#
If you expose the app to the internet it is highly recommended to turn on authentication. You can enable this by uncommenting REQUIRE_LOGIN=True in your docker-compose.yml file.
To log in you will also need to create an administrator account (superuser).