-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
117 lines (109 loc) · 3.06 KB
/
compose.yaml
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
name: qaq
networks:
qaq-network:
external: true
services:
gateway-api:
image: blacklee123/gateway-api
restart: always
volumes:
- ./gateway-api/application.yaml:/app/application.yaml
environment:
- MYSQL_SERVER=${MYSQL_SERVER:?error}
- MYSQL_PORT=${MYSQL_PORT:?error}
- MYSQL_USER=${MYSQL_USER:?error}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:?error}
- RSA_PUBLICKEY=${RSA_PUBLICKEY:?error}
networks:
- qaq-network
depends_on:
- uniauth-api
uniauth-api:
image: blacklee123/uniauth-api
restart: always
volumes:
- ./uniauth-api/application.yaml:/app/application.yaml
environment:
- MYSQL_SERVER=${MYSQL_SERVER:?error}
- MYSQL_PORT=${MYSQL_PORT:?error}
- MYSQL_USER=${MYSQL_USER:?error}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:?error}
- FEISHU_APP_ID=${FEISHU_APP_ID:?error}
- FEISHU_APP_SECRET=${FEISHU_APP_SECRET:?error}
- FEISHU_ENCRYPT_KEY=${FEISHU_ENCRYPT_KEY:?error}
- FEISHU_VERIFICATION_TOKEN=${FEISHU_VERIFICATION_TOKEN:?error}
- RSA_PRIVATEKEY=${RSA_PRIVATEKEY:?error}
- QAQ_ADMIN=${QAQ_ADMIN:?error}
- QAQ_HOST=${QAQ_HOST:?error}
networks:
- qaq-network
uniauth-web:
image: blacklee123/uniauth-web
restart: always
volumes:
- ./uniauth-web/default.conf:/etc/nginx/conf.d/default.conf
- ./uniauth-web/env.js:/usr/share/nginx/html/env.js
- ./uniauth-web/navbar.json:/usr/share/nginx/html/navbar.json
networks:
- qaq-network
docs:
image: blacklee123/docs
restart: always
volumes:
- ./docs/default.conf:/etc/nginx/conf.d/default.conf
networks:
- qaq-network
upload:
image: blacklee123/upload
restart: always
command:
- gunicorn
- upload.wsgi:application
- --bind=0.0.0.0:80
- --log-level=info
- --log-file=-
- --access-logfile=-
- --error-logfile=-
- --worker-class=gevent
- --threads=4
environment:
- DEBUG=${UPLOAD_DEBUG}
- MYSQL_SERVER=${MYSQL_SERVER:?error}
- MYSQL_PORT=${MYSQL_PORT:?error}
- MYSQL_USER=${MYSQL_USER:?error}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:?error}
- S3_SERVER=${UPLOAD_S3_SERVER:?error}
- S3_ACCESSKEY=${UPLOAD_S3_ACCESSKEY:?error}
- S3_SECRET=${UPLOAD_S3_SECRET:?error}
- S3_BUCKET=${UPLOAD_S3_BUCKET:?error}
- S3_VENDER=${UPLOAD_S3_VENDER}
- QAQ_HOST=${QAQ_HOST:?error}
networks:
- qaq-network
static:
image: blacklee123/static
restart: always
environment:
- FEISHU_APP_ID=${FEISHU_APP_ID:?error}
- FEISHU_APP_SECRET=${FEISHU_APP_SECRET:?error}
volumes:
- ./static/data:/app/data
networks:
- qaq-network
nginx:
image: nginx
restart: always
ports:
- "8080:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/proxy.conf:/etc/nginx/proxy.conf
- ./nginx/ssl:/etc/nginx/ssl
networks:
- qaq-network
depends_on:
- uniauth-web
- uniauth-api
- docs
- static
- gateway-api