Files
starRiverProperty/scripts/test-env/docker-compose.infra.yml
T
反编译工作区 31ec44e21a fix: reuse existing ybs-kafka/ybs-zookeeper, move Consul to 9517, remove ZK/Kafka from compose
Former-commit-id: c7aff428fd4b259c9795da76ce4a53be29f9fe4d
2026-05-01 22:57:47 +08:00

37 lines
838 B
YAML

services:
consul:
image: hashicorp/consul:1.22
container_name: v2test-consul
restart: unless-stopped
ports:
- "9517:8500"
command: >
agent -server -bootstrap-expect=1 -ui
-client=0.0.0.0 -bind=0.0.0.0
-data-dir=/consul/data
volumes:
- consul-data:/consul/data
redis:
image: redis:7-alpine
container_name: v2test-redis
restart: unless-stopped
ports:
- "6380:6379"
command: redis-server --requirepass "1qaz!QAZ"
nginx:
image: nginx:alpine
container_name: v2test-nginx
restart: unless-stopped
ports:
- "8090:80"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ../../frontend:/data/cwos/frontend:ro
- ../../nginx.frontend-local.conf:/etc/nginx/conf.d/default.conf:ro
volumes:
consul-data: