-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
63 lines (63 loc) · 1.89 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
version: '1.0'
name: bark-server-docker
services:
# nginx服务器,用于反代到bark-server或chanify
nginx:
build:
context: .
dockerfile: nginx-dockerfile
image: bruce/nginx
container_name: nginx
environment:
- TZ=Asia/Shanghai
volumes:
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./conf/nginx/vhost/:/etc/nginx/conf.d/
- ./logs/nginx/:/data/wwwlogs/
- ./wwwroot/:/data/wwwroot/
- ./certs/:/root/certs/
network_mode: host
restart: always
# acme.sh,用于申请https证书
# 文档:https://github.com/acmesh-official/acme.sh/wiki/Run-acme.sh-in-docker
acme.sh:
build:
context: .
dockerfile: acme.sh-dockerfile
# 这个image就是上面构建的img,这样可以自定义名称
image: bruce/acme.sh
container_name: acme.sh
environment:
- CF_Email=${CF_Email}
- CF_Key=${CF_Key}
# acme.sh工作目录,获取证书或日志文件都会向该目录写入,该参数也可在运行时通过--home来覆盖
- LE_WORKING_DIR=/root/acmeout
- TZ=Asia/Shanghai
volumes:
- ./certs/:/root/certs/
- ./wwwroot/:/data/wwwroot/
- ./acmeout/:/root/acmeout/
- /var/run/docker.sock:/var/run/docker.sock
network_mode: host
restart: always
# Bark app服务器端
bark-server:
image: finab/bark-server
container_name: bark-server
volumes:
- ./data/bark:/data
network_mode: host
restart: always
# Chanify app服务器端: https://github.com/chanify/chanify
# 也是一个苹果消息推送服务器,但功能强大的多,但也比较复杂,用的人少
chanify:
image: wizjin/chanify:dev
container_name: chanify
command: serve
environment:
- TZ=Asia/Shanghai
volumes:
- ./data/chanify:/data
- ./conf/chanify/chanify.yml:/root/.chanify.yml
network_mode: host
restart: always