-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
183 lines (170 loc) · 5.9 KB
/
Copy pathdocker-compose.yml
File metadata and controls
183 lines (170 loc) · 5.9 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# Oracle Development Infrastructure
# Usage: docker compose up -d
services:
# ===========================================================================
# PostgreSQL Database (with TimescaleDB)
# ===========================================================================
postgres:
image: timescale/timescaledb:latest-pg15
platform: linux/arm64 # Apple Silicon (M1/M2/M3)
container_name: oracle-postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-oracle}
POSTGRES_USER: ${POSTGRES_USER:-oracle}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-oracle_dev_password}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-oracle} -d ${POSTGRES_DB:-oracle}"]
interval: 10s
timeout: 5s
retries: 5
# ===========================================================================
# Redis Cache
# ===========================================================================
redis:
image: redis:7-alpine
platform: linux/arm64 # Apple Silicon (M1/M2/M3)
container_name: oracle-redis
restart: unless-stopped
command: redis-server --appendonly yes
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
# ===========================================================================
# Adminer - Database Management UI (Development Only)
# ===========================================================================
adminer:
image: adminer:latest
platform: linux/arm64 # Apple Silicon (M1/M2/M3)
container_name: oracle-adminer
restart: unless-stopped
ports:
- "${ADMINER_PORT:-8085}:8080" # Changed to 8085 to avoid conflicts
environment:
ADMINER_DEFAULT_SERVER: postgres
depends_on:
- postgres
# ===========================================================================
# Optional Services (uncomment as needed)
# ===========================================================================
# ---------------------------------------------------------------------------
# Redis Insight - Redis UI (ARM64 compatible alternative to redis-commander)
# ---------------------------------------------------------------------------
# redis-insight:
# image: redislabs/redisinsight:latest
# platform: linux/arm64
# container_name: oracle-redis-insight
# restart: unless-stopped
# ports:
# - "8001:8001"
# depends_on:
# - redis
# ---------------------------------------------------------------------------
# Apache Kafka (for message queue)
# ---------------------------------------------------------------------------
# zookeeper:
# image: confluentinc/cp-zookeeper:7.5.0
# platform: linux/arm64
# container_name: oracle-zookeeper
# environment:
# ZOOKEEPER_CLIENT_PORT: 2181
# ZOOKEEPER_TICK_TIME: 2000
# ports:
# - "2181:2181"
# kafka:
# image: confluentinc/cp-kafka:7.5.0
# platform: linux/arm64
# container_name: oracle-kafka
# depends_on:
# - zookeeper
# ports:
# - "9092:9092"
# environment:
# KAFKA_BROKER_ID: 1
# KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
# KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
# ---------------------------------------------------------------------------
# Apache Flink (for stream processing)
# ---------------------------------------------------------------------------
# flink-jobmanager:
# image: flink:1.18-scala_2.12-java11
# platform: linux/arm64
# container_name: oracle-flink-jobmanager
# ports:
# - "8082:8081"
# command: jobmanager
# environment:
# - |
# FLINK_PROPERTIES=
# jobmanager.rpc.address: flink-jobmanager
# flink-taskmanager:
# image: flink:1.18-scala_2.12-java11
# platform: linux/arm64
# container_name: oracle-flink-taskmanager
# depends_on:
# - flink-jobmanager
# command: taskmanager
# environment:
# - |
# FLINK_PROPERTIES=
# jobmanager.rpc.address: flink-jobmanager
# taskmanager.numberOfTaskSlots: 2
# ---------------------------------------------------------------------------
# MinIO (S3-compatible object storage)
# ---------------------------------------------------------------------------
# minio:
# image: minio/minio:latest
# platform: linux/arm64
# container_name: oracle-minio
# ports:
# - "9000:9000"
# - "9001:9001"
# environment:
# MINIO_ROOT_USER: oracle
# MINIO_ROOT_PASSWORD: oracle_minio_password
# command: server /data --console-address ":9001"
# volumes:
# - minio-data:/data
# ---------------------------------------------------------------------------
# ClickHouse (for analytics)
# ---------------------------------------------------------------------------
# clickhouse:
# image: clickhouse/clickhouse-server:latest
# platform: linux/arm64
# container_name: oracle-clickhouse
# ports:
# - "8123:8123"
# - "9009:9000"
# volumes:
# - clickhouse-data:/var/lib/clickhouse
# ===========================================================================
# Volumes
# ===========================================================================
volumes:
postgres-data:
driver: local
redis-data:
driver: local
# minio-data:
# driver: local
# clickhouse-data:
# driver: local
# ===========================================================================
# Networks
# ===========================================================================
networks:
default:
name: oracle-network
driver: bridge