-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
63 lines (60 loc) · 1.71 KB
/
docker-compose.dev.yml
File metadata and controls
63 lines (60 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
##
# CT-Ops — Local Development Infrastructure
#
# Starts only the backing services. Run the app separately with:
# cd apps/web && pnpm dev
#
# Usage:
# docker compose -f docker-compose.dev.yml up -d
# docker compose -f docker-compose.dev.yml down
#
# Reads credentials from .env in this directory.
##
services:
db:
image: timescale/timescaledb:latest-pg16
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
# -----------------------------------------------------------------
# Redpanda — message queue (enabled from Phase 1 / Session 3 onwards)
# Uncomment when the ingest service is introduced.
# -----------------------------------------------------------------
# redpanda:
# image: redpandadata/redpanda:latest
# restart: unless-stopped
# command:
# - redpanda
# - start
# - --overprovisioned
# - --smp 1
# - --memory 512M
# - --reserve-memory 0M
# - --node-id 0
# - --check=false
# - --kafka-addr PLAINTEXT://0.0.0.0:9092
# - --advertise-kafka-addr PLAINTEXT://localhost:9092
# ports:
# - "9092:9092"
# - "9644:9644" # Admin API
# volumes:
# - redpanda_data:/var/lib/redpanda/data
# healthcheck:
# test: ["CMD", "rpk", "cluster", "info"]
# interval: 15s
# timeout: 10s
# retries: 5
volumes:
db_data:
# redpanda_data: