-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.6 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
services:
db-studio:
build:
context: .
dockerfile: Dockerfile
ports:
- "3030:3030"
environment:
- NODE_ENV=production
- FORCE_READ_ONLY=false
- RATE_LIMIT_MAX_REQUESTS=100
- AUDIT_LOG_ENABLED=true
restart: unless-stopped
# Resource limits to prevent system crash
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
# Optional: PostgreSQL for testing
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: testdb
volumes:
- postgres_data:/var/lib/postgresql/data
profiles:
- with-db
# Optional: MongoDB for testing
mongodb:
image: mongo:7
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: mongo
MONGO_INITDB_ROOT_PASSWORD: mongo
volumes:
- mongo_data:/data/db
profiles:
- with-db
# Optional: ClickHouse for testing
clickhouse:
image: clickhouse/clickhouse-server:24
ports:
- "8123:8123" # HTTP interface
- "9000:9000" # Native interface
environment:
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: clickhouse
CLICKHOUSE_DB: default
volumes:
- clickhouse_data:/var/lib/clickhouse
profiles:
- with-db
# Optional: Redis for testing
redis:
image: redis:7-alpine
ports:
- "6379:6379"
command: redis-server --save "" --appendonly no
profiles:
- with-db
volumes:
postgres_data:
mongo_data:
clickhouse_data: