fix zipline service

This commit is contained in:
peaklabs-dev
2024-10-10 17:22:08 +02:00
parent 3b446e1ebe
commit edcad90a5a
2 changed files with 13 additions and 12 deletions

BIN
public/svgs/zipline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -1,17 +1,19 @@
# documentation: https://github.com/diced/zipline # 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! # 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 # tags: zipline,file-sharing,upload,sharing
# logo: svgs/zipline.png
# port: 3000 # port: 3000
services: services:
zipline: zipline:
image: ghcr.io/diced/zipline image: ghcr.io/diced/zipline:latest
restart: unless-stopped
environment: environment:
- SERVICE_FQDN_ZIPLINE_3000 - SERVICE_FQDN_ZIPLINE_3000
- CORE_RETURN_HTTPS=false - CORE_RETURN_HTTPS=${CORE_RETURN_HTTPS:-false}
- CORE_SECRET=${SERVICE_PASSWORD_64_ZIPLINE} - CORE_SECRET=${SERVICE_PASSWORD_64_ZIPLINE}
- CORE_DATABASE_URL=postgres://${SERVICE_USER_DATABASE}:${SERVICE_PASSWORD_64_DATABASE}@postgres/${POSTGRESQL_DATABASE:-zipline} - CORE_DATABASE_URL=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres/${POSTGRES_DB:-zipline-db}
- CORE_LOGGER=true - CORE_LOGGER=${CORE_LOGGER:-true}
# Default credentials are "administrator" and "password"
volumes: volumes:
- zipline-uploads:/zipline/uploads - zipline-uploads:/zipline/uploads
- zipline-public:/zipline/public - zipline-public:/zipline/public
@@ -24,18 +26,17 @@ services:
interval: 5s interval: 5s
timeout: 20s timeout: 20s
retries: 10 retries: 10
postgres: postgres:
image: postgres:16-alpine image: postgres:16-alpine
volumes: volumes:
- postgresql-data:/var/lib/postgresql/data - zipline-postgres-data:/var/lib/postgresql/data
environment: environment:
- POSTGRES_USER=${SERVICE_USER_DATABASE} - POSTGRES_USER=${SERVICE_USER_POSTGRES}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_DATABASE} - POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
- POSTGRES_DB=${POSTGRESQL_DATABASE:-zipline} - POSTGRES_DB=${POSTGRES_DB:-zipline-db}
healthcheck: healthcheck:
test: test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
- CMD-SHELL
- pg_isready -U $${SERVICE_USER_DATABASE} -d $${POSTGRESQL_DATABASE}
interval: 5s interval: 5s
timeout: 20s timeout: 20s
retries: 10 retries: 10