加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose copy 2.yml 3.74 KB
一键复制 编辑 原始数据 按行查看 历史
Gogs 提交于 2024-04-05 10:51 . dd
services:
nginx:
image: nginx:1.22
# platform: "linux/arm64/v8"
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:8.3.0
# platform: "linux/arm64"
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
# platform: "linux/arm64"
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:2023.2.22
# platform: "linux/arm64"
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
# platform: "linux/arm64"
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
# platform: "linux/arm64"
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
platform: "linux/amd64"
pull_policy: always
ports:
- 8295:5000
image-vect-visualization:
image: basicai/xtreme1-image-vect-visualization
platform: "linux/amd64"
pull_policy: always
ports:
- 8294:5000
image-object-detection:
image: basicai/xtreme1-image-object-detection
# platform: "linux/arm64"
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
# platform: "linux/arm64"
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:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化