代码拉取完成,页面将自动刷新
version: "3"
services:
arex:
image: ${AREX_REGISTRY}arexadmin01/arex:${AREX_VERSION}
container_name: arex-front
restart: always
ports:
- '8088:8080'
volumes:
- ./arex-logs/arex-front:/usr/src/app/logs
environment:
- SERVICE_API_URL=http://arex-api-service:8080
- SERVICE_SCHEDULE_URL=http://arex-schedule-service:8080
- SERVICE_STORAGE_URL=http://arex-storage-service:8080
depends_on:
arex-api-service:
condition: service_healthy
arex-storage-service:
condition: service_healthy
arex-schedule-service:
condition: service_healthy
arex-api-service:
image: ${AREX_REGISTRY}arexadmin01/arex-api:${AREX_VERSION}
container_name: arex-api
restart: always
ports:
- '8090:8080'
- '20090:20090'
volumes:
- ./arex-logs/arex-api:/logs
- ./additional-config:/usr/local/tomcat/additional-config
environment:
- TZ=Asia/Shanghai
- JAVA_OPTS=-Darex.mongo.uri=$AREX_MONGO_URI
-Darex.redis.uri=$AREX_REDIS_URI
-Darex.storage.service.url=http://arex-storage-service:8080
-Dspring.config.additional-location=/usr/local/tomcat/additional-config/
-Dspring.config.name=application,oauth
depends_on:
mongodb:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/vi/health"]
interval: 5s
timeout: 3s
retries: 15
arex-storage-service:
image: ${AREX_REGISTRY}arexadmin01/arex-storage-serive:${AREX_VERSION}
container_name: arex-storage
restart: always
ports:
- '8093:8080'
- '20093:20093'
volumes:
- ./arex-logs/arex-storage:/logs
environment:
- TZ=Asia/Shanghai
- JAVA_OPTS=-Darex.mongo.uri=$AREX_MONGO_URI
-Darex.redis.uri=$AREX_REDIS_URI
-Darex.api.service.api=http://arex-api-service:8080
depends_on:
arex-api-service:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/vi/health"]
interval: 5s
timeout: 3s
retries: 15
arex-schedule-service:
image: ${AREX_REGISTRY}arexadmin01/arex-replay-schedule:${AREX_VERSION}
container_name: arex-schedule
restart: always
ports:
- '8092:8080'
- '20092:20092'
volumes:
- ./arex-logs/arex-schedule:/logs
- ./custom-dubbo:/usr/local/tomcat/custom-dubbo
environment:
- TZ=Asia/Shanghai
- JAVA_OPTS=-Darex.mongo.uri=$AREX_MONGO_URI
-Darex.redis.uri=$AREX_REDIS_URI
-Darex.storage.service.api=http://arex-storage-service:8080
-Darex.api.service.api=http://arex-api-service:8080
depends_on:
arex-api-service:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/vi/health"]
interval: 5s
timeout: 3s
retries: 15
mongodb:
image: mongo:5.0
container_name: arex-mongodb
restart: always
ports:
- 27017:27017
volumes:
- ./arex-data/mongodb:/data/db
- ./mongo-allone-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ./arex-logs/mongodb:/var/log/mongodb
command: --auth
environment:
- TZ=Asia/Shanghai
- MONGO_INITDB_ROOT_USERNAME=citizix
- MONGO_INITDB_ROOT_PASSWORD=S3cret
- MONGO_INITDB_DATABASE=rootdb
- MONGO_USERNAME=arex
- MONGO_PASSWORD=iLoveArex
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo 127.0.0.1:27017/test --quiet
interval: 10s
timeout: 10s
retries: 6
start_period: 40s
redis:
image: redis:6.2.6
container_name: arex-redis
restart: always
command: --appendonly yes
ports:
- 6379:6379
volumes:
- ./arex-data/redis:/data
- ./arex-logs/redis:/var/log/redis
environment:
- TZ=Asia/Shanghai
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 5s
timeout: 3s
retries: 15
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。