Your free photo server
Switch branches/tags
Nothing to show
Clone or download
Latest commit 91195f6 May 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Updated CircleCI Apr 4, 2018
config Picapport Multiarch Build Mar 2, 2017
.dockerignore Picapport Multiarch Build Mar 2, 2017
Dockerfile 7.2.0 May 24, 2018
Dockerfile.windows latest May 24, 2018
LICENSE Initial commit Mar 2, 2017
Makefile Updates Mar 2, 2018
README.md Updated Readme May 24, 2018
VERSION 7.2.0 May 24, 2018
appveyor.yml Normal Dockerfile again Mar 2, 2018
build.ps1 Variables Apr 9, 2018

README.md

CircleCI Build status

Picapport in a Container

Currently, this is a docker image based on Alpine and has Picapport installed.

Supported Architectures

This multiarch image supports amd64, i386, arm32v6, arm64v8, ppc64le, and s390x on Linux and amd64 on Windows

Starting the container

For Linux

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

Starting the container

For Windows

docker run -d --name picapport -p 8080:80 whatever4711/picapport:windows-amd64

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 whatever4711/picapport

Easier setup with docker-compose

version: '3'

services:
  picapport:
    image: whatever4711/picapport
    restart: always
    expose:
      - 80
    networks:
      - backend
    volumes:
      - /path/to/your/configuration:/opt/picapport/.picapport
      - /path/to/your/fotos:/srv/photos

Run it with docker-compose up -d