feat: add more
This commit is contained in:
13
src/openlist/.env.example
Normal file
13
src/openlist/.env.example
Normal file
@@ -0,0 +1,13 @@
|
||||
# OpenList version
|
||||
OPENLIST_VERSION="latest"
|
||||
|
||||
# User and group IDs
|
||||
PUID=0
|
||||
PGID=0
|
||||
UMASK=022
|
||||
|
||||
# Timezone
|
||||
TZ="Asia/Shanghai"
|
||||
|
||||
# Port override
|
||||
OPENLIST_PORT_OVERRIDE=5244
|
||||
53
src/openlist/README.md
Normal file
53
src/openlist/README.md
Normal file
@@ -0,0 +1,53 @@
|
||||
# OpenList
|
||||
|
||||
[English](./README.md) | [中文](./README.zh.md)
|
||||
|
||||
This service deploys OpenList, a file list program that supports multiple storage.
|
||||
|
||||
## Services
|
||||
|
||||
- `openlist`: OpenList service
|
||||
|
||||
## Environment Variables
|
||||
|
||||
| Variable Name | Description | Default Value |
|
||||
| ---------------------- | ----------------- | --------------- |
|
||||
| OPENLIST_VERSION | OpenList version | `latest` |
|
||||
| PUID | User ID | `0` |
|
||||
| PGID | Group ID | `0` |
|
||||
| UMASK | UMASK | `022` |
|
||||
| TZ | Timezone | `Asia/Shanghai` |
|
||||
| OPENLIST_PORT_OVERRIDE | Host port mapping | `5244` |
|
||||
|
||||
## Volumes
|
||||
|
||||
- `openlist_data`: Data directory
|
||||
|
||||
## Usage
|
||||
|
||||
### Start OpenList
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
### Access
|
||||
|
||||
- Web UI: <http://localhost:5244>
|
||||
|
||||
### Initial Setup
|
||||
|
||||
1. Open <http://localhost:5244>
|
||||
2. Complete the initial setup wizard
|
||||
3. Configure storage providers
|
||||
4. Start managing files
|
||||
|
||||
## Notes
|
||||
|
||||
- First startup requires initial configuration
|
||||
- Supports multiple cloud storage providers
|
||||
- Community-driven fork of AList
|
||||
|
||||
## License
|
||||
|
||||
OpenList follows the original AList license. See [OpenList GitHub](https://github.com/OpenListTeam/OpenList) for more information.
|
||||
37
src/openlist/docker-compose.yaml
Normal file
37
src/openlist/docker-compose.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- &localtime /etc/localtime:/etc/localtime:ro
|
||||
- &timezone /etc/timezone:/etc/timezone:ro
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
|
||||
services:
|
||||
openlist:
|
||||
<<: *default
|
||||
image: openlistteam/openlist:${OPENLIST_VERSION:-latest}
|
||||
container_name: openlist
|
||||
ports:
|
||||
- "${OPENLIST_PORT_OVERRIDE:-5244}:5244"
|
||||
volumes:
|
||||
- *localtime
|
||||
- *timezone
|
||||
- openlist_data:/opt/openlist/data
|
||||
environment:
|
||||
- PUID=${PUID:-0}
|
||||
- PGID=${PGID:-0}
|
||||
- UMASK=${UMASK:-022}
|
||||
- TZ=${TZ:-Asia/Shanghai}
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 1G
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
|
||||
volumes:
|
||||
openlist_data:
|
||||
Reference in New Issue
Block a user