音乐标签web

This commit is contained in:
charlesxie
2023-03-11 16:51:50 +08:00
parent d3974031ea
commit 24e6637984
7 changed files with 20 additions and 70 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM python:3.7-alpine
ENV PYTHONUNBUFFERED 1
RUN apt-get update && apt-get upgrade
RUN apt-get install -y gettext python3-dev libpq-dev
RUN mkdir /music-tag-web
WORKDIR /music-tag-web
ADD ./requirements.txt /music-tag-web/
RUN pip install -r /music-tag-web/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
CMD gunicorn django_vue_cli.wsgi
EXPOSE 80 8000

View File

@@ -1,9 +1,6 @@
# django
1 内置celery,beat
2 drf, 返回值规范
![](music-tag.png)
# Music Tag Web
『音乐标签』Web版是一款可以编辑歌曲的标题,专辑,艺术家,歌词,封面等信息的应用程序, 支持FLAC, APE, WAV, AIFF, WV, TTA, MP3, MP4, M4A, OGG, MPC, OPUS, WMA, DSF, DFF等音频格式,绿色无广告,无任何功能限制。
![](img.png)
#vue
1 api层
2 views层
3 vuex层
4 router层

View File

@@ -33,7 +33,8 @@ class TaskViewSets(GenericViewSet):
file_path_list = file_path.split('/')
data = os.listdir(file_path)
children_data = []
allow_type = ["flac", "mp3"]
allow_type = ["flac", "mp3", "ape", "wav", "aiff", "wv", "tta", "mp4", "m4a", "ogg", "mpc",
"opus", "wma", "dsf", "dff"]
for each in data:
file_type = each.split(".")[-1]
if file_type not in allow_type:

View File

@@ -1,50 +0,0 @@
version: '3.7'
services:
redis:
image: redis
restart: always
django-vue-cli:
build:
context: .
dockerfile: docker_file/django_vue_cli/Dockerfile
image: "django-vue-cli"
container_name: "django-vue-cli-container"
command: bash -c "python manage.py migrate&&gunicorn -w 1 -k gevent -b 0.0.0.0:8000 django_vue_cli.wsgi:application"
depends_on:
- redis
- mysql
links:
- redis
- mysql
expose:
- "8000"
volumes:
- .:/django-vue-cli
nginx:
build:
context: .
dockerfile: docker_file/nginx/Dockerfile
image: "nginx-dv"
container_name: "nginx-dv-container"
depends_on:
- django-vue-cli
links:
- django-vue-cli
volumes:
- ./static:/home/ubuntu/static
ports:
- "80:80"
mysql:
image: mysql
container_name: mysql-with-django-vue
restart: always
environment:
- MYSQL_DATABASE=bomboo
- MYSQL_ROOT_PASSWORD=xhongc
expose:
- "3306"
ports:
- "3306:3306"
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"

View File

@@ -1,11 +0,0 @@
FROM python:3.9
ENV PYTHONUNBUFFERED 1
RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list && rm -Rf /var/lib/apt/lists/* && apt-get update
RUN apt-get install -y gettext python3-dev libpq-dev
RUN mkdir /django-vue-cli
WORKDIR /django-vue-cli
ADD ./requirements.txt /django-vue-cli/
RUN pip install -r /django-vue-cli/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
EXPOSE 80 8000

BIN
img.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

BIN
music-tag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB