forked from Swetrix/selfhosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (69 loc) · 1.51 KB
/
docker-compose.yml
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
services:
# This is the frontend, you can remove it if you want
swetrix:
image: swetrix/swetrix-fe:v3.2.0
restart: always
depends_on:
- swetrix-api
# ports:
# - '80:3000'
environment:
- API_URL
- SELFHOSTED=true
# This is the analytics API
swetrix-api:
image: swetrix/swetrix-api:v3.2.3
restart: always
container_name: swetrix-api
# ports:
# - '8080:5005'
environment:
- JWT_ACCESS_TOKEN_SECRET
- JWT_REFRESH_TOKEN_SECRET
- REDIS_HOST=redis
- CLICKHOUSE_HOST=http://clickhouse
- API_ORIGINS
- EMAIL
- PASSWORD
- API_KEY
- DEBUG_MODE=false
- CLOUDFLARE_PROXY_ENABLED=true
links:
- 'redis'
- 'clickhouse'
depends_on:
- 'redis'
- 'clickhouse'
redis:
image: redis:7.2-alpine
restart: always
environment:
- REDIS_PORT=6379
- REDIS_USER=default
- REDIS_PASSWORD
# ports:
# - 6379:6379
# volumes:
# - '/opt/redis-volume:/data'
clickhouse:
image: clickhouse/clickhouse-server:24.8-alpine
container_name: clickhouse
cap_add:
- SYS_NICE
environment:
- CLICKHOUSE_DATABASE=analytics
- CLICKHOUSE_USER=default
- CLICKHOUSE_PORT=8123
- CLICKHOUSE_PASSWORD
# ports:
# - 8123:8123
restart: always
volumes:
- swetrix-events-data:/var/lib/clickhouse
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
swetrix-events-data:
driver: local