-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 975 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 975 Bytes
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
# How to use :
# username=admin password=password uid=1000 gid=1000 docker-compose up -d
# docker-compose down
# --------------------------------------------------------------------------------
version: '2'
services:
mstream:
# https://hub.docker.com/r/linuxserver/mstream
image: linuxserver/mstream:version-v4.7.0
hostname: MSTREAM
container_name: docker_mstream
environment:
- PUID=${uid}
- PGID=${gid}
- TZ=Aisa/Shanghai
- USER=${username}
- PASSWORD=${password}
# 不能启用 Json,否则无法通过环境变量变更登录账密
- USE_JSON=false
- UMASK_SET=022
volumes:
- ./config/:/config/
- ./music/:/music/
ports:
- 9000:3000
networks:
vpn:
ipv4_address: 172.168.28.2
restart: on-failure
networks:
vpn:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.28.0/24
gateway: 172.168.28.1