You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.3 KiB
YAML

version: '3.9'
services:
koillection:
image: koillection/koillection
container_name: Koillection
restart: unless-stopped
ports:
- 4460:80
environment:
- DB_DRIVER=pdo_pgsql
- DB_NAME=koillection
- DB_HOST=db
- DB_PORT=5432
- DB_USER=koillection
- DB_PASSWORD=koillection
- DB_VERSION=16
- PHP_TZ=America/Los_Angeles
- HTTPS_ENABLED=0
- PUID=1000
- PGID=1000
depends_on:
- db
volumes:
- /home/ronnic/Configs/koillection/conf:/conf:rw
- /home/ronnic/Configs/koillection/uploads:/uploads:rw
db:
image: postgres:16
container_name: Koillection-DB
mem_limit: 512m
cpu_shares: 768
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "koillection", "-U", "koillectionuser"]
timeout: 45s
interval: 10s
retries: 10
environment:
- POSTGRES_DB=koillection
- POSTGRES_USER=koillection
- POSTGRES_PASSWORD=koillection
volumes:
- /home/ronnic/Configs/koillection/db:/var/lib/postgresql/data:rw
restart: unless-stopped