mirror of
https://github.com/xhongc/music-tag-web.git
synced 2026-10-28 18:54:03 +08:00
音乐标签web
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
|
||||
13
README.md
13
README.md
@@ -1,9 +1,6 @@
|
||||
# django
|
||||
1 内置celery,beat
|
||||
2 drf, 返回值规范
|
||||

|
||||
# Music Tag Web
|
||||
『音乐标签』Web版是一款可以编辑歌曲的标题,专辑,艺术家,歌词,封面等信息的应用程序, 支持FLAC, APE, WAV, AIFF, WV, TTA, MP3, MP4, M4A, OGG, MPC, OPUS, WMA, DSF, DFF等音频格式,绿色无广告,无任何功能限制。
|
||||
|
||||

|
||||
|
||||
#vue
|
||||
1 api层
|
||||
2 views层
|
||||
3 vuex层
|
||||
4 router层
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
@@ -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
music-tag.png
Normal file
BIN
music-tag.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
Reference in New Issue
Block a user