-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose.yaml
55 lines (52 loc) · 1.21 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
services:
lagrange:
image: ghcr.nju.edu.cn/lagrangedev/lagrange.onebot:edge
# pull_policy: always
restart: always
volumes:
- ./bot:/app/data
depends_on:
- ws
profiles: [lagrange]
napcat:
image: mlikiowa/napcat-docker:latest
# pull_policy: always
restart: always
environment:
- ACCOUNT=${ACCOUNT}
- NAPCAT_UID=${UID}
- NAPCAT_GID=${GID}
volumes:
- ./bot/.config/QQ:/app/.config/QQ
- ./bot/napcat/config:/app/napcat/config
depends_on:
- ws
profiles: [napcat]
ws:
image: python:3.12-slim
restart: always
command: bash -c "pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt && python server.py"
working_dir: /app
environment:
TZ: "Asia/Shanghai"
ENV: ${ENV}
volumes:
- ./ws:/app
ports:
- 127.0.0.1:8811:8000
python:
build:
context: ./python
restart: always
environment:
TZ: "Asia/Shanghai"
# SANIC_KEEP_ALIVE: False
SANIC_REQUEST_TIMEOUT: 10
SANIC_RESPONSE_TIMEOUT: 10
deploy:
resources:
limits:
cpus: '1'
memory: 1024M
restart_policy:
condition: on-failure