-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (62 loc) · 1.74 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (62 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.8'
services:
# PostgreSQL 主数据库
postgres:
image: postgres:15-alpine
container_name: qiming_postgres
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=C --lc-ctype=C"
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- qiming_network
restart: unless-stopped
# ClickHouse 时序数据库
clickhouse:
image: clickhouse/clickhouse-server:latest
container_name: vespera-clickhouse-1
ports:
- "8123:8123"
- "9000:9000"
volumes:
- clickhouse_data:/var/lib/clickhouse
- ./backups/clickhouse:/backups
- ./docker/clickhouse/init.sh:/docker-entrypoint-initdb.d/init.sh
environment:
- CLICKHOUSE_USER=${CLICKHOUSE_USER}
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8123/ping"]
interval: 30s
timeout: 10s
retries: 3
networks:
- qiming_network
restart: unless-stopped
# Redis 缓存
redis:
image: redis:7-alpine
container_name: qiming_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- qiming_network
restart: unless-stopped
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}
# 注意: Apache Airflow 已移除
# 原因: 性能问题,待日后重新考虑工作流调度功能
volumes:
postgres_data:
clickhouse_data:
redis_data:
networks:
qiming_network:
driver: bridge