配置文件
docker-compose.yaml
文件内容如下:
version: "3.8" services: clickhouse: image: clickhouse/clickhouse-server:22.10.2.11 container_name: clickhouse hostname: clickhouse restart: always ports: - 8123:8123 - 9000:9000 - 9363:9363 volumes: - clickhouse-data:/var/lib/clickhouse - clickhouse-config:/etc/clickhouse-server mssql: image: mcr.microsoft.com/mssql/server:2019-latest container_name: mssql hostname: mssql restart: always environment: ACCEPT_EULA: Y SA_PASSWORD: m5tgb6tfc%^ ports: - 31433:1433 postgres: image: postgis/postgis:15-3.3-alpine container_name: postgresql hostname: postgresql restart: always environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: 123456 POSTGRES_DB: demo TZ: Asia/Shanghai PGTZ: Asia/Shanghai ports: - 5432:5432 volumes: - pg-data:/var/lib/postgresql/data postgres-exporter: image: prometheuscommunity/postgres-exporter container_name: postgres-exporter hostname: postgres-exporter restart: always environment: DATA_SOURCE_NAME: postgresql://postgres:123456@postgresql:5432/postgres?sslmode=disable ports: - 9187:9187 pgadmin: image: dpage/pgadmin4:latest container_name: pgadmin hostname: pgadmin restart: always environment: PGADMIN_DEFAULT_EMAIL: iricbing@gmail.com PGADMIN_DEFAULT_PASSWORD: 123456 ports: - 5433:80 mongodb: image: mongo:5.0.5-focal container_name: mongodb hostname: mongodb restart: always ports: - 27017:27017 volumes: - mongo-data:/data - /etc/localtime:/etc/localtime:ro mongodb-exporter: image: percona/mongodb_exporter:2.32.0 container_name: mongodb-exporter hostname: mongodb-exporter restart: always ports: - 9216:9216 environment: MONGODB_URI: mongodb://mongodb:27017/admin?ssl=false redis: image: redis:alpine container_name: redis hostname: redis restart: always ports: - 6379:6379 volumes: - redis-data:/data - /etc/localtime:/etc/localtime:ro environment: # - REDIS_PASS=mypassword - REDIS_REPLICATION_MODE=master - REDIS_APPENDONLY=yes - REDIS_APPENDFSYNC=always redis-exporter: image: oliver006/redis_exporter:v1.45.0 container_name: redis-exporter hostname: redis-exporter restart: always ports: - 9121:9121 environment: - REDIS_ADDR=redis://redis:6379 elasticsearch: image: elasticsearch:7.13.2 container_name: elasticsearch hostname: elasticsearch restart: always ports: - 9200:9200 volumes: - elasticsearch-data:/usr/share/elasticsearch/data - /etc/localtime:/etc/localtime:ro volumes: pg-data: mongo-data: redis-data: elasticsearch-data: clickhouse-data: clickhouse-config:点击复制复制失败已复制
包含的服务
PostgreSQL15
,带有gis
功能
登录账号:postgres
密码:123456
pgadmin4
登录账号:iricbing@gmail.com
密码:123456
MongoDB 4.4.2
无需验证Redis
最新版
无需验证ElasticSearch 7.13.2
无需验证Microsoft SQL Server 2019
用户名:sa
密码:m5tgb6tfc%^
ClickHouse 22.2.3.5
9363
是内置prometheus
指标采集端口。