Skip to content
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

koyeb deploy updated to v3 #7

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,31 @@

The fastest way to deploy the alist to koyeb is to click the **Deploy to Koyeb** button below.

[![deploy to koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?type=docker&image=xhofe/alist:v2.6.4&ports=8080;http;/&name=alist&env[DB_TYPE]=sqlite3&env[DB_HOST]=host&[DB_PORT]=3306&env[DB_USER]=alist&env[DB_PASS]password=&[DB_NAME]=alist&env[DB_TABLE_PREFIX]=alist_&env[CACHE_EXPIRATION]=60&env[CLEANUP_INTERVAL]=120&env[ASSETS]=https://npm.elemecdn.com/alist-web@$version/dist)
[![deploy to koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?type=docker&image=xhofe/alist:v3.28.0&ports=5244;http;/&name=alist&env[PORT]=5244&env[DB_TYPE]=mysql&env[DB_HOST]=host&env[DB_PORT]=3306&env[DB_USER]=alist&env[DB_PASS]=password&env[DB_NAME]=alist&env[DB_TABLE_PREFIX]=alist_&env[DB_SSL_MODE]=false&env[CDN]=https://cdn.jsdelivr.net/npm/[email protected]/dist)

Update the environment variables as follows:

`DB_TYPE:` mysql (you can also use sqlite3 and postgres. mysql is for remote db)

`DB_HOST:` provide db host address here (keep blank for sqlite3 db)

`DB_USER:` provide db username here (keep blank for sqlite3 db)

`DB_PASS:` provide db password here (keep blank for sqlite3 db)

`DB_TABLE_PREFIX:` alist_ (keep as it is)

`CDN:` https://cdn.jsdelivr.net/npm/[email protected]/dist (you can also use other CDN. but this CDN is tested and working.)

`DB_PORT:` 3306 (keep as it is)

`PORT:` 5244 (keep as it is)

`DB_NAME:` provide db name here (keep blank for sqlite3 db)

`DB_SSL_MODE:` false (only if you use mysql or postgres db. for sqlite3 this env variable is not needed)

N.B: During deploying keep watching the deploy logs to get the admin password. It will be appeared as initial password: <password> text. For remote db you can't change it later using `./alist admin` command.

### database
You may need to use another remote MySQL database as instance restarts will lose data.
Expand Down