mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
31ec44e21a
Former-commit-id: c7aff428fd4b259c9795da76ce4a53be29f9fe4d
37 lines
838 B
YAML
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:
|