-
Notifications
You must be signed in to change notification settings - Fork 65
/
docker-compose.yaml
74 lines (70 loc) · 1.5 KB
/
docker-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
# 这个文件是在 开发中使用
# 线上部署文档请参考:
# https://tbk.qiyutech.tech/server/deploy.html
version: "3.3"
services:
admin:
build:
dockerfile: docker/Dockerfile
context: .
image: tbk:latest
restart: always
networks:
- tbk
working_dir: /app/tbk
entrypoint: /app/entrypoints/dev_admin.sh
ports:
- "8001:8001"
env_file:
- dev.env
healthcheck:
test: curl --fail http://127.0.0.1:8001/ping/ || exit 1
interval: 10s
timeout: 2s
retries: 3
volumes:
- type: bind
source: ./logs
target: /app/logs
- type: bind
source: ./media
target: /app/media
- type: bind
source: ./static
target: /app/static
- type: bind
source: ./tbk
target: /app/tbk
- type: bind
source: ./templates
target: /app/templates
- type: bind
source: ./sqlite
target: /app/sqlite
cron:
image: tbk:latest
restart: always
networks:
- tbk
working_dir: /app/tbk
entrypoint: /app/entrypoints/cron.sh
env_file:
- dev.env
depends_on:
admin:
condition: service_healthy
volumes:
- type: bind
source: ./logs
target: /app/logs
- type: bind
source: ./media
target: /app/media
- type: bind
source: ./tbk
target: /app/tbk
- type: bind
source: ./sqlite
target: /app/sqlite
networks:
tbk: