2024-02-25 00:18:08 +08:00
|
|
|
version: '3.3'
|
|
|
|
|
services:
|
2024-05-16 16:01:49 +08:00
|
|
|
orion-visor-service:
|
2024-06-19 11:07:03 +08:00
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-service:2.0.9
|
2024-06-19 11:29:09 +08:00
|
|
|
privileged: true
|
2024-02-25 00:18:08 +08:00
|
|
|
ports:
|
|
|
|
|
- 1081:80
|
|
|
|
|
environment:
|
2024-05-16 16:01:49 +08:00
|
|
|
- MYSQL_HOST=orion-visor-mysql
|
2024-04-26 18:14:22 +08:00
|
|
|
- MYSQL_PORT=3306
|
2024-05-16 00:03:30 +08:00
|
|
|
- MYSQL_DATABASE=orion_visor
|
2024-05-17 17:23:43 +08:00
|
|
|
- MYSQL_USER=root
|
2024-02-25 00:18:08 +08:00
|
|
|
- MYSQL_PASSWORD=Data@123456
|
2024-05-16 00:03:30 +08:00
|
|
|
- REDIS_HOST=orion-visor-redis
|
2024-02-27 15:20:40 +08:00
|
|
|
- REDIS_PASSWORD=Data@123456
|
|
|
|
|
- SECRET_KEY=uQeacXV8b3isvKLK
|
2024-05-23 13:56:03 +08:00
|
|
|
- DEMO_MODE=false
|
2024-02-25 00:18:08 +08:00
|
|
|
volumes:
|
2024-05-17 17:23:43 +08:00
|
|
|
- /data/orion-visor-space/docker-volumes/orion-visor-service/root-orion:/root/orion
|
2024-06-20 01:29:43 +00:00
|
|
|
healthcheck:
|
2024-06-20 02:56:16 +00:00
|
|
|
test: ["CMD", "curl", "http://127.0.0.1:9200/orion-visor/api/server/bootstrap/health"]
|
2024-06-20 01:29:43 +00:00
|
|
|
interval: 3s
|
2024-06-20 02:56:16 +00:00
|
|
|
timeout: 300s
|
|
|
|
|
retries: 200
|
2024-06-20 01:29:43 +00:00
|
|
|
start_period: 3s
|
2024-02-25 00:18:08 +08:00
|
|
|
depends_on:
|
2024-06-20 01:29:43 +00:00
|
|
|
orion-visor-mysql:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
orion-visor-redis:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
links:
|
2024-05-16 16:01:49 +08:00
|
|
|
- orion-visor-mysql
|
2024-05-16 00:03:30 +08:00
|
|
|
- orion-visor-redis
|
2024-05-16 16:01:49 +08:00
|
|
|
orion-visor-mysql:
|
2024-06-19 11:07:03 +08:00
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-mysql:2.0.9
|
2024-02-25 00:18:08 +08:00
|
|
|
privileged: true
|
|
|
|
|
ports:
|
|
|
|
|
- 3307:3306
|
|
|
|
|
environment:
|
2024-05-16 00:03:30 +08:00
|
|
|
- MYSQL_DATABASE=orion_visor
|
2024-02-25 00:18:08 +08:00
|
|
|
- MYSQL_USER=orion
|
|
|
|
|
- MYSQL_PASSWORD=Data@123456
|
|
|
|
|
- MYSQL_ROOT_PASSWORD=Data@123456
|
|
|
|
|
volumes:
|
2024-05-16 17:23:57 +08:00
|
|
|
- /data/orion-visor-space/docker-volumes/orion-visor-mysql/var-lib-mysql:/var/lib/mysql
|
|
|
|
|
- /data/orion-visor-space/docker-volumes/orion-visor-mysql/var-lib-mysql-files:/var/lib/mysql-files
|
|
|
|
|
- /data/orion-visor-space/docker-volumes/orion-visor-mysql/etc-mysql:/etc/mysql
|
2024-06-20 01:29:43 +00:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/127.0.0.1/3306"]
|
|
|
|
|
interval: 3s
|
|
|
|
|
timeout: 60s
|
|
|
|
|
retries: 10
|
|
|
|
|
start_period: 3s
|
2024-05-16 00:03:30 +08:00
|
|
|
orion-visor-redis:
|
2024-06-19 11:07:03 +08:00
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:2.0.9
|
2024-05-16 16:01:49 +08:00
|
|
|
privileged: true
|
2024-02-25 00:18:08 +08:00
|
|
|
ports:
|
|
|
|
|
- 6380:6379
|
2024-05-16 16:01:49 +08:00
|
|
|
environment:
|
|
|
|
|
- REDIS_PASSWORD=Data@123456
|
2024-02-25 00:18:08 +08:00
|
|
|
volumes:
|
2024-05-16 17:23:57 +08:00
|
|
|
- /data/orion-visor-space/docker-volumes/orion-visor-redis/data:/data
|
2024-05-17 17:23:43 +08:00
|
|
|
command: sh -c "redis-server /usr/local/redis.conf --requirepass $${REDIS_PASSWORD}"
|
2024-06-20 01:29:43 +00:00
|
|
|
healthcheck:
|
|
|
|
|
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
|
|
|
|
|
interval: 3s
|
|
|
|
|
timeout: 60s
|
|
|
|
|
retries: 10
|
|
|
|
|
start_period: 3s
|
2024-05-16 00:03:30 +08:00
|
|
|
orion-visor-adminer:
|
2024-02-25 17:44:21 +08:00
|
|
|
image: adminer
|
|
|
|
|
ports:
|
|
|
|
|
- 8081:8080
|
2024-06-20 01:29:43 +00:00
|
|
|
testing:
|
|
|
|
|
build:
|
|
|
|
|
context: e2e
|
|
|
|
|
environment:
|
|
|
|
|
SERVER: http://orion-visor-service:80
|
|
|
|
|
depends_on:
|
|
|
|
|
orion-visor-service:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
links:
|
|
|
|
|
- orion-visor-service
|