forked from uptimekit/uptimekit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (88 loc) · 2.1 KB
/
docker-compose.yml
File metadata and controls
94 lines (88 loc) · 2.1 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
services:
dash:
build:
context: .
dockerfile: apps/dash/Dockerfile
ports:
- "${DASH_PORT:-3000}:3000"
env_file:
- .env
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/uptimekit
- CLICKHOUSE_URL=http://clickhouse:8123
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=clickhouse
- REDIS_URL=redis://redis:6379
depends_on:
- db
- redis
restart: always
scheduler:
build:
context: .
dockerfile: packages/scheduler/Dockerfile
env_file:
- .env
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/uptimekit
- CLICKHOUSE_URL=http://clickhouse:8123
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=clickhouse
- REDIS_URL=redis://redis:6379
depends_on:
- db
- redis
- clickhouse
restart: always
status-page:
build:
context: .
dockerfile: apps/status-page/Dockerfile
ports:
- "${STATUS_PAGE_PORT:-3001}:3001"
env_file:
- .env
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/uptimekit
- CLICKHOUSE_URL=http://clickhouse:8123
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=clickhouse
- REDIS_URL=redis://redis:6379
depends_on:
- db
- redis
- clickhouse
restart: always
db:
image: postgres:17-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: uptimekit
volumes:
- db_data:/var/lib/postgresql/data
restart: always
redis:
image: redis:8.0-alpine
volumes:
- redis_data:/data
restart: always
clickhouse:
image: clickhouse/clickhouse-server:latest
volumes:
- clickhouse_data:/var/lib/clickhouse
environment:
CLICKHOUSE_DB: uptimekit
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: clickhouse
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
user: "root"
ulimits:
nofile:
soft: 262144
hard: 262144
restart: always
volumes:
db_data:
clickhouse_data:
redis_data: