-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
executable file
·53 lines (48 loc) · 1.02 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
version: '3.9'
services:
db:
image: mysql:latest
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- ./runtime/database:/var/lib/mysql:rw
environment:
- MYSQL_ROOT_PASSWORD=passwd
restart: always
networks:
- ktap
ktap-ui-web:
image: ktap-ui-web:latest
build: ./ktap-ui-web
ports:
- 5173:80
depends_on:
- ktap-server
networks:
- ktap
ktap-server:
image: ktap-server:latest
build:
context: ./ktap-server
env_file:
- ./ktap-server/.env
environment:
- DATABASE_URL=mysql://root:passwd@db:3306/ktap?useUnicode=true&autoReconnect=true
depends_on:
wait-for-db:
condition: service_completed_successfully
volumes:
- ./runtime/public:/app/public:rw
networks:
- ktap
wait-for-db:
image: atkrad/wait4x
depends_on:
- db
command: tcp db:3306 -t 15s -i 500ms
networks:
- ktap
networks:
ktap:
driver: bridge