forked from Swetrix/selfhosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (66 loc) · 1.58 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
version: '3.9'
services:
# This is the frontend, you can remove it if you want
swetrix:
image: swetrix/swetrix-fe:v2.1.0
restart: always
depends_on:
- swetrix-api
ports:
- '80:80'
environment:
- API_URL=http://localhost:8080/
- REACT_APP_AIAPI_URL=https://aiapi.swetrix.com/
- REACT_APP_SELFHOSTED=true
# This is the analytics API
swetrix-api:
image: swetrix/swetrix-api:v2.1.0
restart: always
container_name: swetrix-api
ports:
- '8080:5005'
environment:
- JWT_ACCESS_TOKEN_SECRET=jwt-access-token-secret
- JWT_REFRESH_TOKEN_SECRET=jwt-refresh-token-secret
- REDIS_HOST=redis
- CLICKHOUSE_HOST=http://clickhouse
- API_ORIGINS=
- EMAIL=test@test.com
- PASSWORD=12345678
links:
- 'redis'
- 'clickhouse'
depends_on:
- 'redis'
- 'clickhouse'
redis:
image: redis:7.0.11-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:23.4.2.11-alpine
container_name: clickhouse
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