-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (77 loc) · 2.05 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:
nginx-proxy: # 前端代理nginx
image: superng6/nginx:debian-stable-1.18.0
container_name: nginx-proxy
restart: always
networks:
blog_net:
ipv4_address: 172.19.0.2
ports:
- 80:80
- 443:443
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
- $PWD/conf/nginx-proxy/nginx.conf:/etc/nginx/nginx.conf
- $PWD/conf/nginx-proxy/default.conf:/etc/nginx/conf.d/default.conf
- $PWD/conf/nginx-proxy/mime.types:/etc/nginx/mime.types
- $PWD/ssl:/etc/nginx/ssl
- $PWD/logs/proxy:/var/log/nginx
depends_on:
- nginx-hugo
- twikoo
nginx-hugo:
image: superng6/nginx:debian-stable-1.18.0
container_name: nginx-hugo
restart: always
networks:
blog_net:
ipv4_address: 172.19.0.3
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
- $PWD/conf/nginx-hugo/nginx.conf:/etc/nginx/nginx.conf
- /dev/shm/nginx-cache-hugo:/var/run/nginx-cache
- $PWD/data/hugo:/var/www/html
- $PWD/logs/hugo:/var/log/nginx
twikoo:
image: imaegoo/twikoo
container_name: twikoo
restart: always
networks:
blog_net:
ipv4_address: 172.19.0.4
environment:
TWIKOO_THROTTLE: 1000
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
- $PWD/data/twikoo:/app/data
piclist:
image: 'kuingsmile/piclist:v1.7.0'
container_name: piclist
restart: always
networks:
blog_net:
ipv4_address: 172.19.0.5
volumes:
- '$PWD/data/piclist:/root/.piclist'
# 需要设置 piclist_key 环境变量
command: node /usr/local/bin/picgo-server -k ${piclist_key}
alist:
image: 'xhofe/alist:v3.30.0'
container_name: alist
restart: always
networks:
blog_net:
ipv4_address: 172.19.0.6
volumes:
- '/$PWD/data/alist:/opt/alist/data'
environment:
- PUID=0
- PGID=0
- UMASK=022
networks:
blog_net:
driver: bridge
ipam:
config:
- subnet: 172.19.0.0/16