-
Notifications
You must be signed in to change notification settings - Fork 616
Add Zipline one-click app (file/image hosting) #1276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wiseman
wants to merge
1
commit into
caprover:master
Choose a base branch
from
wiseman:wiseman/zipline
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| captainVersion: 4 | ||
|
|
||
| services: | ||
| $$cap_appname: | ||
| image: ghcr.io/diced/zipline:$$cap_zipline_version | ||
| environment: | ||
| CORE_SECRET: $$cap_core_secret | ||
| DATABASE_URL: postgresql://$$cap_db_user:$$cap_db_pass@srv-captain--$$cap_appname-db:5432/$$cap_db_name | ||
| DATASOURCE_TYPE: local | ||
| DATASOURCE_LOCAL_DIRECTORY: /zipline/uploads | ||
| volumes: | ||
| - $$cap_appname-uploads:/zipline/uploads | ||
| - $$cap_appname-public:/zipline/public | ||
| - $$cap_appname-themes:/zipline/themes | ||
| depends_on: | ||
| - $$cap_appname-db | ||
| caproverExtra: | ||
| containerHttpPort: '3000' | ||
|
|
||
| $$cap_appname-db: | ||
| image: postgres:$$cap_postgres_version | ||
| environment: | ||
| POSTGRES_USER: $$cap_db_user | ||
| POSTGRES_PASSWORD: $$cap_db_pass | ||
| POSTGRES_DB: $$cap_db_name | ||
| volumes: | ||
| - $$cap_appname-db-data:/var/lib/postgresql/data | ||
| caproverExtra: | ||
| notExposeAsWebApp: 'true' | ||
|
|
||
| caproverOneClickApp: | ||
| variables: | ||
| - id: $$cap_zipline_version | ||
| label: Zipline image tag | ||
| description: 'Use a valid image tag from GHCR (for example: 4.3.2 or latest)' | ||
| defaultValue: '4.3.2' | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This version has a known vulnerability. Let's use 4.4.1 as minimum |
||
| - id: $$cap_postgres_version | ||
| label: PostgreSQL version | ||
| description: Check valid tags at https://hub.docker.com/_/postgres/tags | ||
| defaultValue: '16' | ||
| - id: $$cap_db_user | ||
| label: Database user | ||
| defaultValue: zipline | ||
| - id: $$cap_db_pass | ||
| label: Database password | ||
| description: Password for accessing the database. A random one has been generated for you. | ||
| defaultValue: $$cap_gen_random_hex(32) | ||
| - id: $$cap_db_name | ||
| label: Database name | ||
| defaultValue: zipline | ||
| - id: $$cap_core_secret | ||
| label: Zipline core secret | ||
| description: Secret used to encrypt sensitive data. A random one has been generated for you. | ||
| defaultValue: $$cap_gen_random_hex(64) | ||
| instructions: | ||
| start: |- | ||
| Zipline is a self-hosted file and image sharing service. This template deploys Zipline with a PostgreSQL database and local storage. | ||
|
|
||
| If you want to use S3-compatible storage or change advanced settings, see the Zipline configuration docs. | ||
| end: |- | ||
| Zipline is deployed and available at https://$$cap_appname.$$cap_root_domain | ||
|
|
||
| For configuration (S3, limits, custom domains), see the Zipline docs. | ||
| displayName: Zipline | ||
| description: Self-hosted file and image hosting service with shareable links. | ||
| documentation: https://zipline.diced.sh | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the suggestion to use
latest.