forked from xtreme1-io/xtreme1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
118 lines (118 loc) · 2.9 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
version: '3.9'
services:
nginx:
image: nginx:1.22
ports:
- 8190:80
volumes:
- ./deploy/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
backend:
condition: service_healthy
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: ImOxO8Lz
MYSQL_DATABASE: x1_community
MYSQL_USER: x1_community
MYSQL_PASSWORD: Rc4K3L6f
ports:
- 8191:3306
volumes:
- mysql-data:/var/lib/mysql
- ./deploy/mysql/migration:/docker-entrypoint-initdb.d
healthcheck:
test: '/usr/bin/mysql --user=x1_community --password=Rc4K3L6f --execute "SHOW DATABASES;"'
interval: 10s
timeout: 10s
start_period: 10s
retries: 10
redis:
image: redis:6.2
ports:
- 8192:6379
volumes:
- redis-data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 10s
start_period: 10s
retries: 10
minio:
image: bitnami/minio:2022.9.1
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: 1tQB970y
MINIO_DEFAULT_BUCKETS: x1-community:download
ports:
- 8193:9000
- 8194:9001
volumes:
- minio-data:/data
healthcheck:
test:
[
"CMD",
"curl",
"--silent",
"-f",
"http://minio:9000/minio/health/ready"
]
interval: 10s
timeout: 10s
start_period: 10s
retries: 10
backend:
image: basicai/xtreme1-backend:v0.5.2
# Uncomment this line and comment previous line to build image locally, not pull from Docker Hub.
# build: ./backend
ports:
- 8290:8080
# volumes:
# Using customized application.yml to override default configs.
# - /host/path/to/customized/application.yml:/app/config/application.yml
healthcheck:
test:
[
"CMD",
"curl",
"--silent",
"-f",
"http://backend:8080/actuator/health"
]
interval: 10s
timeout: 10s
start_period: 10s
retries: 30
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
minio:
condition: service_healthy
frontend:
image: basicai/xtreme1-frontend:v0.5.2
# Uncomment this line and comment previous line to build image locally, not pull from Docker Hub.
# build: ./frontend
ports:
- 8291:8080
image-object-detection:
image: basicai/xtreme1-image-object-detection
ports:
- 8292:5000
# You need to explicitly specify model profile to start this service.
profiles:
- model
point-cloud-object-detection:
image: basicai/xtreme1-point-cloud-object-detection
ports:
- 8293:5000
# You need to explicitly specify model profile to start this service.
profiles:
- model
volumes:
mysql-data:
redis-data:
minio-data: