feature:更新docker打包方式

This commit is contained in:
charlesxie
2023-04-07 23:15:34 +08:00
parent 869d1d3477
commit 74c0b3a1b3
3 changed files with 17 additions and 2 deletions

View File

@@ -14,7 +14,22 @@
操作指南:
1. `docker login --username=xxx registry.cn-hangzhou.aliyuncs.com`
2. `docker pull registry.cn-hangzhou.aliyuncs.com/charles0519/music_tag_web:0.0.1`
3. `docker run -d -p 8001:8001 -v /path/to/music:/app/media/ registry.cn-hangzhou.aliyuncs.com/charles0519/music_tag_web:0.0.1`
3. docker-compose.yml / portainer stacks
![img_1.png](img_1.png)
```yaml
version: '3'
services:
music-tag:
image: registry.cn-hangzhou.aliyuncs.com/charles0519/music_tag_web:0.0.3
container_name: music-tag-web
ports:
- "8001:8001"
volumes:
- D:\Music:/app/media:z
command: /start
restart: always
```
# User Interface
![](img.png)
![img_3.png](img_3.png)

View File

@@ -6,4 +6,4 @@ set -o nounset
python manage.py migrate
exec gunicorn -w 1 -k gevent -b 0.0.0.0:8001 django_vue_cli.wsgi:application
exec gunicorn -w 1 -b 0.0.0.0:8001 django_vue_cli.wsgi:application --timeout 120

BIN
img_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB