-
Notifications
You must be signed in to change notification settings - Fork 151
/
docker-compose.yml
136 lines (136 loc) · 3.45 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
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: xtreme1
MYSQL_USER: xtreme1
MYSQL_PASSWORD: Rc4K3L6f
ports:
- 8191:3306
volumes:
- mysql-data:/var/lib/mysql
- ./deploy/mysql/custom.cnf:/etc/mysql/conf.d/custom.cnf
- ./deploy/mysql/migration:/docker-entrypoint-initdb.d
healthcheck:
test: '/usr/bin/mysql --user=xtreme1 --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: xtreme1: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:
# By default, Compose will pull image from Docker Hub when no local image found.
image: basicai/xtreme1-backend:v0.9.1
pull_policy: always
# 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:
# By default, Compose will pull image from Docker Hub when no local image found.
image: basicai/xtreme1-frontend:v0.9.1
pull_policy: always
# Uncomment this line and comment previous line to build image locally, not pull from Docker Hub.
# build: ./frontend
ports:
- 8291:80
pcd-tools:
image: basicai/xtreme1-pcd-tools
pull_policy: always
ports:
- 8295:5000
image-vect-visualization:
image: basicai/xtreme1-image-vect-visualization
pull_policy: always
ports:
- 8294:5000
image-object-detection:
image: basicai/xtreme1-image-object-detection
pull_policy: always
ports:
- 8292:5000
# You need to explicitly specify model profile to start this service.
profiles:
- model
runtime: nvidia
point-cloud-object-detection:
image: basicai/xtreme1-point-cloud-object-detection
pull_policy: always
ports:
- 8293:5000
# You need to explicitly specify model profile to start this service.
profiles:
- model
runtime: nvidia
volumes:
mysql-data:
redis-data:
minio-data: