Skip to content

Commit 6fc2004

Browse files
committed
add koillection
1 parent 0bf7654 commit 6fc2004

File tree

4 files changed

+118
-0
lines changed

4 files changed

+118
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ A [document management system](https://en.wikipedia.org/wiki/Document_management
255255
- [Paperless NGX](examples/paperless-ngx) - A community-supported supercharged version of paperless: scan, index and archive all your physical documents.
256256
- [Papermerge](examples/papermerge) - Free and open source document management system with OCR designed for scanned documents, digital archives, pdf, tiff, jpeg.
257257
- [DocuSeal](examples/docuseal) - Create, fill, and sign digital documents (alternative to DocuSign).
258+
- [Koillection](examples/koillection) - Koillection is a self-hosted service allowing users to manage any kind of collections.
258259

259260
### Pastebins
260261

@@ -411,6 +412,7 @@ A [wiki](https://en.wikipedia.org/wiki/Wiki) is a publication collaboratively ed
411412

412413
- [Domainmod](examples/domainmod) - DomainMOD is an open source application used to manage your domains and other internet assets in a central location.
413414
- [Snipe-IT](examples/snipe-it) - Snipe-IT is a free, open source IT asset management system written in PHP.
415+
- [Koillection](examples/koillection) - Koillection is a self-hosted service allowing users to manage any kind of collections.
414416

415417
### Request Bins
416418

examples/koillection/.env

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
########################################################################################################
2+
# WEB
3+
#
4+
# APP_DEBUG=1 displays detailed error message
5+
#
6+
# APP_SECRET is a random string used for security, you can use for example openssl rand -base64 21
7+
# APP_SECRET is automatically generated when using Docker
8+
#
9+
# PHP_TZ, see possible values here https://www.w3schools.com/php/php_ref_timezones.asp
10+
########################################################################################################
11+
12+
APP_DEBUG=0
13+
APP_ENV=prod
14+
#APP_SECRET=
15+
16+
HTTPS_ENABLED=1
17+
UPLOAD_MAX_FILESIZE=20M
18+
PHP_MEMORY_LIMIT=512M
19+
PHP_TZ=Europe/Paris
20+
21+
22+
########################################################################################################
23+
# API
24+
#
25+
#
26+
# JWT_PASSPHRASE is a random string used for security, you can use for example openssl rand -base64 21
27+
# JWT_PASSPHRASE is automatically generated when using Docker
28+
########################################################################################################
29+
30+
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
31+
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
32+
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
33+
#JWT_PASSPHRASE=
34+
35+
########################################################################################################
36+
# DATABASE
37+
########################################################################################################
38+
39+
DB_DRIVER=pdo_pgsql
40+
DB_NAME=koillection
41+
DB_HOST=db
42+
DB_PORT=5432
43+
DB_USER=koillection
44+
DB_PASSWORD=change_me!
45+
DB_VERSION=16

examples/koillection/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# References
2+
3+
- https://github.com/benjaminjonard/koillection
+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
version: '3.3'
2+
3+
services:
4+
5+
db:
6+
image: postgres:16-alpine
7+
container_name: koillection-db
8+
hostname: koillection-db
9+
restart: unless-stopped
10+
expose:
11+
- 5432
12+
volumes:
13+
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/koillection/database:/var/lib/postgresql/data
14+
environment:
15+
- POSTGRES_DB=${DB_NAME:-koillection}
16+
- POSTGRES_USER=${DB_USER:-koillection}
17+
- POSTGRES_PASSWORD=${DB_PASSWORD:-koillection}
18+
#networks:
19+
# - proxy
20+
21+
koillection:
22+
image: koillection/koillection:latest
23+
container_name: koillection
24+
hostname: koillection
25+
depends_on:
26+
- db
27+
restart: unless-stopped
28+
ports:
29+
- 8888:80/tcp
30+
expose:
31+
- 80
32+
environment:
33+
- APP_DEBUG=${APP_DEBUG:-0}
34+
- APP_ENV=${APP_ENV:-prod}
35+
- HTTPS_ENABLED=${HTTPS_ENABLED:-0}
36+
- UPLOAD_MAX_FILESIZE=${UPLOAD_MAX_FILESIZE:-20M}
37+
- PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT:-512M}
38+
- PHP_TZ=${PHP_TZ:-Europe/Berlin}
39+
- CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
40+
- JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
41+
- JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
42+
- DB_DRIVER=${DB_DRIVER:-pdo_pgsql}
43+
- DB_HOST=${DB_HOST:-db}
44+
- DB_NAME=${DB_NAME:-koillection}
45+
- DB_USER=${DB_USER:-koillection}
46+
- DB_PASSWORD=${DB_PASSWORD:-koillection}
47+
- DB_PORT=${DB_PORT:-5432}
48+
- DB_VERSION=${DB_VERSION:-16}
49+
volumes:
50+
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/koillection/uploads:/uploads
51+
#networks:
52+
# - proxy
53+
#labels:
54+
# - traefik.enable=true
55+
# - traefik.docker.network=proxy
56+
# - traefik.http.routers.koillection.rule=Host(`collection.example.com`)
57+
# - traefik.http.services.koillection.loadbalancer.server.port=80
58+
# # Optional part for file upload max sizes
59+
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000
60+
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000
61+
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000
62+
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000
63+
# # Optional part for traefik middlewares
64+
# - traefik.http.routers.koillection.middlewares=local-ipwhitelist@file,authelia@docker
65+
66+
#networks:
67+
# proxy:
68+
# external: true

0 commit comments

Comments
 (0)