-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
121 lines (113 loc) · 3.58 KB
/
docker-compose.yml
File metadata and controls
121 lines (113 loc) · 3.58 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
services:
postgres:
image: postgres:17
container_name: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
pgweb:
image: sosedoff/pgweb:0.16.2
container_name: pgweb
environment:
- DATABASE_URL=postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-postgres}?sslmode=disable
ports:
- "${PGWEB_PORT:-15080}:8081"
depends_on:
- postgres
restart: unless-stopped
valkey:
image: valkey/valkey:${VALKEY_VERSION:-8.0}
container_name: valkey
ports:
- "${VALKEY_PORT:-6379}:6379"
volumes:
- valkey_data:/data
restart: unless-stopped
redis-commander:
image: ghcr.io/joeferner/redis-commander:0.9.1
container_name: redis-commander
environment:
- REDIS_HOSTS=local:valkey:6379
ports:
- "${REDIS_COMMANDER_PORT:-15081}:8081"
depends_on:
- valkey
restart: unless-stopped
redpanda:
image: redpandadata/redpanda:${REDPANDA_VERSION:-v24.2.11}
container_name: redpanda
command:
- redpanda
- start
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --advertise-kafka-addr internal://redpanda:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
- --advertise-pandaproxy-addr internal://redpanda:8082,external://localhost:18082
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
- --rpc-addr redpanda:33145
- --advertise-rpc-addr redpanda:33145
- --mode dev-container
- --smp 1
- --memory 512M
ports:
- "${REDPANDA_SCHEMA_REGISTRY_PORT:-18081}:18081"
- "${REDPANDA_PROXY_PORT:-18082}:18082"
- "${REDPANDA_KAFKA_PORT:-19092}:19092"
- "${REDPANDA_ADMIN_PORT:-19644}:9644"
volumes:
- redpanda_data:/var/lib/redpanda/data
restart: unless-stopped
redpanda-console:
image: redpandadata/console:v2.7.2
container_name: redpanda-console
environment:
- KAFKA_BROKERS=redpanda:9092
- KAFKA_SCHEMAREGISTRY_ENABLED=true
- KAFKA_SCHEMAREGISTRY_URLS=http://redpanda:8081
ports:
- "${REDPANDA_CONSOLE_PORT:-15082}:8080"
depends_on:
- redpanda
restart: unless-stopped
# Database migrations with dbmate
dbmate:
image: amacneil/dbmate:2.28.0
container_name: dbmate
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-postgres}?sslmode=disable
volumes:
- ./migrations:/db/migrations
command: up
depends_on:
- postgres
restart: "no"
# Example: Your custom application
# Uncomment and customize this section to add your own service
# myapp:
# build:
# context: ./myapp
# dockerfile: Dockerfile
# container_name: ${APP_NAME:-myapp}
# environment:
# - DATABASE_URL=postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-postgres}
# - REDIS_URL=redis://valkey:6379
# - KAFKA_BROKERS=redpanda:9092
# - APP_PORT=${APP_PORT:-8080}
# - APP_ENV=${APP_ENV:-development}
# ports:
# - "${APP_PORT:-8080}:${APP_PORT:-8080}"
# depends_on:
# - postgres
# - valkey
# - redpanda
# restart: unless-stopped
volumes:
postgres_data:
valkey_data:
redpanda_data: