feat: add zipline template

This commit is contained in:
christiankolbow
2024-08-17 16:39:05 +02:00
parent 69fc4c7f52
commit ae5e720b47

View File

@@ -0,0 +1,41 @@
# documentation: https://github.com/diced/zipline
# slogan: A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!
# tags: zipline,file-sharing,upload,sharing
# port: 3000
services:
zipline:
image: ghcr.io/diced/zipline
restart: unless-stopped
environment:
- SERVICE_FQDN_ZIPLINE_3000
- CORE_RETURN_HTTPS=false
- CORE_SECRET=${SERVICE_PASSWORD_64_ZIPLINE}
- CORE_DATABASE_URL=postgres://${SERVICE_USER_DATABASE}:${SERVICE_PASSWORD_64_DATABASE}@postgres/${POSTGRESQL_DATABASE:-zipline}
- CORE_LOGGER=true
volumes:
- zipline-uploads:/zipline/uploads
- zipline-public:/zipline/public
depends_on:
postgres:
condition: service_healthy
healthcheck:
test:
["CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000/auth/login"]
interval: 5s
timeout: 20s
retries: 10
postgres:
image: postgres:16-alpine
volumes:
- postgresql-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${SERVICE_USER_DATABASE}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_DATABASE}
- POSTGRES_DB=${POSTGRESQL_DATABASE:-zipline}
healthcheck:
test:
- CMD-SHELL
- pg_isready -U $${SERVICE_USER_DATABASE} -d $${POSTGRESQL_DATABASE}
interval: 5s
timeout: 20s
retries: 10