forked from xhongc/music-tag-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
78 lines (77 loc) · 1.77 KB
/
local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3'
services:
django:
image: registry.cn-hangzhou.aliyuncs.com/charles0519/music_tag_web:latest
container_name: music-tag-web
expose:
- "8001"
volumes:
- /Users/macbookair/Music/my_music:/app/media:z # 配置本地音乐文件夹
restart: always
environment:
dockerrun: "yes"
depends_on:
- redis
- db
networks:
- internal
command: /start
celeryworker:
image: registry.cn-hangzhou.aliyuncs.com/charles0519/music_tag_web:latest
container_name: music_celeryworker
environment:
dockerrun: "yes"
ports: [ ]
volumes:
- /Users/macbookair/Music/my_music:/app/media:z # 配置本地音乐文件夹
networks:
- internal
depends_on:
- redis
- db
command: /start-celeryworker
celerybeat:
image: registry.cn-hangzhou.aliyuncs.com/charles0519/music_tag_web:latest
container_name: music_celerybeat
environment:
dockerrun: "yes"
ports: [ ]
networks:
- internal
depends_on:
- redis
- db
command: /start-celerybeat
redis:
image: redis:latest
restart: always
container_name: music_redis
networks:
- internal
expose:
- "6379"
db:
image: mysql:latest
restart: always
environment:
MYSQL_DATABASE: music3
MYSQL_ROOT_PASSWORD: 123456
networks:
- internal
expose:
- "3306"
nginx:
image: nginx:latest
restart: always
container_name: music_nginx
ports:
- "9150:80"
networks:
- internal
depends_on:
- django
volumes:
- /Users/macbookair/Music/nginx.conf:/etc/nginx/nginx.conf:ro # 配置nginx.conf
- /Users/macbookair/Music/my_music:/app/media:z # 配置本地音乐文件夹
networks:
internal: