-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
84 lines (79 loc) · 2.56 KB
/
docker-compose.yaml
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
version: "3.8"
services:
redpanda:
image: docker.redpanda.com/redpandadata/redpanda:v23.1.9
hostname: kafka
environment:
REDPANDA_DEVELOPER_MODE: true
command:
- redpanda start
- --smp 1
- --overprovisioned
- --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr PLAINTEXT://kafka:29092,OUTSIDE://localhost:9092
- --unsafe-bypass-fsync
- --check=false
- --set group_max_session_timeout_ms=3000
- --set kafka_group_recovery_timeout_ms=3000
ports:
- 8081:8081
- 8082:8082
- 9092:9092
- 9644:9644
- 29092:29092
healthcheck:
test: [ "CMD", "curl", "--fail", "http://localhost:9644/v1/status/ready" ]
interval: 1s
timeout: 1s
retries: 60
kowl:
image: vectorized/console:v2.2.3
restart: always
deploy:
replicas: 1
ports:
- "8080:8080"
depends_on:
- redpanda
environment:
- KAFKA_BROKERS=kafka:29092
- KAFKA_SCHEMAREGISTRY_ENABLED=TRUE
- KAFKA_SCHEMAREGISTRY_URLS=http://kafka:8081
postgres:
image: public.ecr.aws/docker/library/postgres:14.7-alpine
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
- "./local-env/postgres:/docker-entrypoint-initdb.d"
- "./src/Contrib.KafkaFlow.Outbox.Postgres/schema:/docker-entrypoint-initdb.d/0001.outbox"
- "./src/Contrib.KafkaFlow.ProcessManagers.Postgres/schema:/docker-entrypoint-initdb.d/0002.processes"
mssql:
image: mcr.microsoft.com/mssql/server:2022-CU12-ubuntu-22.04
environment:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "4YiUmU2YJ8$6eqbSXF8765Ck3"
MSSQL_PID: Developer
healthcheck:
test: ["CMD", "test", "-f", "/tmp/mssql.ready"]
# test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$${MSSQL_SA_PASSWORD}" -Q "SELECT 1" || exit 1
interval: 5s
timeout: 5s
retries: 5
ports:
- "1433:1433/tcp"
restart: unless-stopped
command: ["/bin/bash", "-c", "/docker-entrypoint-initdb.d/initdb.sh"]
volumes:
- "./local-env/mssql:/docker-entrypoint-initdb.d"
- "./src/Contrib.KafkaFlow.Outbox.SqlServer/schema:/docker-entrypoint-initdb.d/0001.outbox"
- "./src/Contrib.KafkaFlow.ProcessManagers.SqlServer/schema:/docker-entrypoint-initdb.d/0002.processes"