Skip to content

Instantly share code, notes, and snippets.

@Pitastic
Last active November 19, 2023 21:16
Show Gist options
  • Save Pitastic/dbd499e9cd8bb113be0d19f33c9f97f8 to your computer and use it in GitHub Desktop.
Save Pitastic/dbd499e9cd8bb113be0d19f33c9f97f8 to your computer and use it in GitHub Desktop.
Dockerfile for a simple PicApport Container with a little Starter
version: '3'
services:
picapport:
build: .
restart: always
ports:
- 80:80
volumes:
- /srv/picapport/config:/opt/picapport/.picapport
- /mnt/Media:/srv/photos
logging:
driver: json-file
options:
max-file: "5"
max-size: "10m"
# Dockerfile for a simple PicApport Container
# Update: Just put a new picapport-headless.jar next to this file and rebuild.
FROM debian:buster
ENV PICAPPORT_PORT 80
ENV PICAPPORT_LANG de
ENV PICAPPORT_LOG WARNING
ENV XMS 512m
ENV XMX 1024m
RUN apt update && apt upgrade -y && apt-get -y install tini openjdk-11-jre && \
mkdir -p /opt/picapport && \
mkdir /opt/picapport/.picapport
WORKDIR /opt/picapport
COPY picapport-headless.jar picapport-headless.jar
EXPOSE ${PICAPPORT_PORT}
CMD exec java -Xms$XMS -Xmx$XMX -Djava.awt.headless=true -DTRACE=$PICAPPORT_LOG -Duser.language=$PICAPPORT_LANG -Duser.home=/opt/picapport -jar picapport-headless.jar
#!/bin/bash
COMPOSE_CMD='docker compose' # or: docker-compose
${COMPOSE_CMD} down
sudo rm -rf config/db/*
${COMPOSE_CMD} up -d && ${COMPOSE_CMD} logs -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment