-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
84 lines (81 loc) · 1.91 KB
/
docker-compose.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
79
80
81
82
83
84
version: '3.1'
services:
mariadb:
restart: always
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD_FILE=/config/root.txt
- MYSQL_DATABASE=nerve
volumes:
- ./config:/config
redis:
image: redis
http:
restart: always
build:
context: .
dockerfile: docker/Dockerfile.http
args:
- http_proxy
- https_proxy
- RESOLVER=8.8.8.8
ports:
- "9292:80"
links:
- redis
- mariadb
secrets:
- source: "nerve_root_pw"
target: "nerve_root_pw"
uid: "9999"
gid: "9999"
mode: 0400
environment:
- http_proxy
- https_proxy
volumes:
- tmp:/tmp
- music:/music
- ./config:/config
worker:
restart: always
build:
context: .
dockerfile: docker/Dockerfile.worker
args:
- http_proxy
- https_proxy
- RESOLVER=8.8.8.8
links:
- redis
- mariadb
secrets:
- source: "nerve_root_pw"
target: "nerve_root_pw"
uid: "9999"
gid: "9999"
mode: 0400
environment:
- http_proxy
- https_proxy
volumes:
- tmp:/tmp
- music:/music
- audiowall:/audiowall
- ./config:/config
volume_own:
restart: "no"
image: alpine
command: "chown -R 999:999 /music"
volumes:
- music:/music
- audiowall:/audiowall
secrets:
nerve_root_pw:
file: ./config/root.txt
volumes:
music:
tmp:
audiowall:
external:
name: audiowall