forked from databuddy-analytics/Databuddy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
71 lines (67 loc) · 1.71 KB
/
docker-compose.yaml
File metadata and controls
71 lines (67 loc) · 1.71 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
69
70
71
services:
postgres:
image: postgres:17
container_name: databuddy-postgres
environment:
POSTGRES_DB: databuddy
POSTGRES_USER: databuddy
POSTGRES_PASSWORD: databuddy_dev_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U databuddy -d databuddy" ]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
clickhouse:
image: clickhouse/clickhouse-server:25.5.1-alpine
container_name: databuddy-clickhouse
environment:
CLICKHOUSE_DB: databuddy_analytics
CLICKHOUSE_USER: default
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ports:
- "8123:8123"
- "9000:9000"
volumes:
- clickhouse_data:/var/lib/clickhouse
- ./scripts/clickhouse-init.sql:/docker-entrypoint-initdb.d/clickhouse-init.sql
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8123/ping" ]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: databuddy-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes --maxmemory 512mb --maxmemory-policy noeviction
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data:
driver: local
clickhouse_data:
driver: local
redis_data:
driver: local
redis_queue_data:
driver: local
networks:
databuddy-network:
driver: bridge