Sign inSign up

st3ff3n/picapport

By st3ff3n

•Updated over 4 years ago

Picapport Photo Server based on bitnami/minideb Image

Image
1

777

st3ff3n/picapport repository overview

Build status

⁠Picapport in a Container

The image is based on bitnami/minideb and has Picapport⁠ installed.

This base image supports a full glibc library which is necessary for the video plugin.

⁠Supported Architectures

The image supports amd64 on Linux.

⁠Starting the container

⁠For Windows & Linux

docker run -d --name picapport -p 8080:80 ste3ff3n/picapport

Thereafter you can access picapport on http://localhost:8080⁠

⁠Specifying Custom Configurations

Create a file picapport.properties and save it in a folder, e.g. config. You can specify all parameter described in the Picapport server guide⁠:

server.port=80
robot.root.0.path=/srv/photos
foto.jpg.usecache=2
foto.jpg.cache.path=/srv/cache

In this file we specified, e.g., the path for picapport to search for the pictures inside the docker container, and the path, where all cached photos are stored.

⁠Mounting Volumes

  • Mount your configuration with: -v $PWD/config:/opt/picapport/.picapport
  • Mount your photos with: -v /path/to/your/fotos:/srv/photos
  • Eventually mount the cache with -v /path/to/cache:/srv/cache

docker run -d --name picapport -p 8080:80 -v $PWD/config:/opt/picapport/.picapport -v /path/to/fotos:/srv/photos -v /path/to/cache:/srv/cache st3ff3n/picapport

⁠Easier setup with docker-compose

version: '3'

services:
  picapport:
    image: st3ff3n/picapport
    restart: always
    stop_grace_period: 5m
    expose:
      - 80
    environment:
      - Xms=512m
      - Xmx=1g
      - PICAPPORT_LANG=de
    networks:
      - backend
    volumes:
      - /path/to/your/configuration:/opt/picapport/.picapport
      - /path/to/your/fotos:/srv/photos

Run it with docker-compose up -d

⁠Docker-compose for use with traefik as proxy

Enter your specific domain name in the labels section.

version: '3'

services:
  picapport:
    image: st3ff3n/picapport:latest
    restart: always
    stop_grace_period: 5m
    environment:
      - XMS=1g
      - XMX=2g
      - DTRACE=DEBUG
      - LC_ALL=de_DE.UTF-8
      - PICAPPORT_LANG=de

    networks:
      - default

    volumes:
      - /opt/containers/picapport/data:/opt/picapport/.picapport
      - /opt/containers/picapport/fotos:/srv/photos
      - /opt/containers/picapport/cache:/srv/cache
      
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.picapport-1.entrypoints=http"
      - "traefik.http.routers.picapport-1.rule=Host(`example.com`)"  ## Enter the domain name ##
      - "traefik.http.middlewares.picapport-1-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.picapport-1.middlewares=picapport-1-https-redirect"
      - "traefik.http.routers.picapport-1-secure.entrypoints=https"
      - "traefik.http.routers.picapport-1-secure.rule=Host(`example.com`)" ## Enter the domain name ##
      - "traefik.http.routers.picapport-1-secure.tls=true"
      - "traefik.http.routers.picapport-1-secure.tls.certresolver=http"
      - "traefik.http.routers.picapport-1-secure.service=picapport-1"
      - "traefik.http.services.picapport-1.loadbalancer.server.port=80"
      - "traefik.docker.network=proxy"

⁠Source on github

The code to create this docker container is available on https://github.com/st-effen/picapport⁠.

Tag summary

Content type

Image

Digest

Size

237.6 MB

Last updated

over 4 years ago

docker pull st3ff3n/picapport