/
docker-compose.yml
142 lines (113 loc) · 2.85 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: '3'
services:
# system-level services
#--------------------------------
nginx:
#image: iotcat/ushio-nginx
image: docker.yimian.xyz:5000/nginx
#image: docker.yimian.xyz:5000/hub/nginx
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- "/mnt/etc/home.yimian.xyz/nginx/:/etc/nginx/"
- "/mnt/etc/:/mnt/etc/"
- "/mnt/var/ssl/:/mnt/config/ssl/"
- "/var/log/nginx/:/var/log/nginx/"
- "/home/:/home/"
#network_mode: "host"
#command: sh /ip.sh & nginx -g daemon off;
depends_on:
- registry
- php-fpm
- v2ray
- nextcloud
# Database
#----------------------------------
# app-level services
# --------------------------------------
monitor:
#build: https://github.com/iotcat/ushio-monitor.git
#image: iotcat/ushio-monitor
image: docker.yimian.xyz:5000/monitor
container_name: monitor
restart: always
command: USER=home.yimian.xyz
network_mode: "host"
depends_on:
- registry
php-fpm:
#image: crunchgeek/php-fpm:7.3
image: docker.yimian.xyz:5000/php-fpm
container_name: php-fpm
restart: always
volumes:
- "/home/:/home/"
- "/mnt/:/mnt/"
depends_on:
- registry
frpc:
#image: snowdreamtech/frpc
image: docker.yimian.xyz:5000/frpc
container_name: frpc
restart: always
volumes:
- "/mnt/etc/common/frp/frpc.ini.home:/etc/frp/frpc.ini"
network_mode: "host"
depends_on:
- registry
# common apps
# -------------------------------------
# local apps
# ---------------------------------------
registry:
image: docker.yimian.xyz:5000/registry
container_name: registry
restart: always
environment:
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/yimian.xyz.crt
- REGISTRY_HTTP_TLS_KEY=/certs/yimian.xyz.key
ports:
- 5000:5000
volumes:
- "/mnt/var/ssl/yimian.xyz:/certs"
- "/var/docker:/var/lib/registry"
gitea:
image: docker.yimian.xyz:5000/gitea
environment:
- USER_UID=1000
- USER_GID=1000
#- HTTP_PORT=80
- SSH_PORT=4422
restart: always
volumes:
- /home/data/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
v2ray:
#image: v2ray/official
image: docker.yimian.xyz:5000/v2ray
container_name: v2ray
restart: always
volumes:
- "/mnt/config/v2ray/home.yimian.xyz/config.json:/etc/v2ray/config.json"
- "/var/log/v2ray/:/var/log/v2ray/"
depends_on:
- registry
nextcloud:
image: nextcloud
container_name: nextcloud
restart: always
volumes:
- "/home/data/nextcloud:/var/www/html"
ports:
- "8888:80"
# networks setting
# ------------------------------------
networks:
default: