photoprism/docker
2022-01-08 12:49:25 +01:00
..
demo Config: Add ClientConfig.SiteDomain info based on SiteUrl 2021-12-14 15:47:30 +01:00
develop OIDC: Add Traefik, Keycloak and Rename Development Base Image #782 2022-01-06 11:31:37 +01:00
dummy Docs: Update URL 2021-12-12 20:14:07 +01:00
examples Docker: Remove command from mariadb service in 32bit ARMv7 example #1889 2022-01-06 16:44:32 +01:00
goproxy CI: Add Dockerfile for 32-bit ARMv7 image with "-armv7" suffix 2021-12-10 12:27:35 +01:00
photoprism Index: Prevent two primary files in photo stacks #1823 2022-01-06 14:33:49 +01:00
scripts Docker: Fix install-go.sh script 2022-01-06 11:42:02 +01:00
tensorflow Docs: Update URL 2021-12-12 20:14:07 +01:00
README.md Docs: Add docker/README.md 2022-01-08 12:49:25 +01:00

Dockerfiles and Docker Compose Examples

Why are we using Docker?

Containers are nothing new; Solaris Zones have been around for about 15 years, first released publicly in 2004. The chroot system call was introduced during development of Version 7 Unix in 1979. It is used ever since for hosting applications exposed to the public Internet.

Modern Linux containers are an incremental improvement. A main advantage of Docker is that application images can be easily made available to users via Internet. It provides a common standard across most operating systems and devices, which saves our team a lot of time that we can then spend more effectively, for example, providing support and developing one of the many features that users are waiting for.

Human-readable and versioned Dockerfiles as part of our public source code also help avoid surprises and "works for me" moments by enabling us to have the exact same environment everywhere in development and production.

Last but not least, virtually all file format parsers have vulnerabilities that just haven't been discovered yet. This is a known risk that can affect you even if your computer is not directly connected to the Internet. Running apps in a container with limited host access is an easy way to improve security without compromising performance and usability.

Virtual Machines

A virtual machine running its own operating system provides more security, but typically has side effects such as lower performance and more difficult handling. Note that you can also run Docker in a VM to get the best of both worlds. It's essentially what happens when you run Docker on operating systems other than Linux.

Setup without Docker

If your environment doesn't support Docker and there are no ports or native packages available, you can build and install PhotoPrism from the publicly available source code:

git clone https://github.com/photoprism/photoprism.git
cd photoprism
make all install

Missing build dependencies must be installed manually as shown in our human-readable and versioned Dockerfile. You often don't need to use the exact same versions, so it's possible to replace packages with what is available in your environment.

Note we don't have the resources to provide private users with dependencies and TensorFlow libraries for their personal environments. We therefore recommend learning Docker if your operating system supports it. Docker vastly simplifies installation and upgrades. It saves our team a lot of time that we can then spend more effectively, see next question.

Contribute

Everyone is invited to contribute by building and testing native packages for Linux distributions and other operating systems! 💐

Visit docs.photoprism.app/developer-guide to learn more.