-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (65 loc) · 1.97 KB
/
docker-compose.yml
File metadata and controls
71 lines (65 loc) · 1.97 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
services:
redis:
image: redis:7-alpine
elasticsearch:
image: elasticsearch:9.1.4
environment:
discovery.type: single-node
xpack.security.enabled: "false"
healthcheck:
test: ["CMD-SHELL", "curl http://elasticsearch:9200"]
interval: 15s
timeout: 10s
retries: 10
mongodb:
image: mongo:8
environment:
ALLOW_EMPTY_PASSWORD: "yes"
MONGODB_ENABLE_JOURNAL: "false"
postgres:
image: postgres:18
environment:
POSTGRES_HOST_AUTH_METHOD: trust
kafka:
image: apache/kafka:latest
environment:
KAFKA_LISTENERS: CONTROLLER://kafka:9091,HOST://0.0.0.0:9092,DOCKER://0.0.0.0:9093
KAFKA_ADVERTISED_LISTENERS: HOST://kafka:9092,DOCKER://kafka:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,DOCKER:PLAINTEXT,HOST:PLAINTEXT
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@kafka:9091
KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
healthcheck:
test: ["CMD-SHELL", "/opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:9092 --list"]
interval: 30s
timeout: 10s
retries: 50
test: &test-config
build:
context: .
dockerfile: Dockerfile
depends_on:
elasticsearch:
condition: service_healthy
mongodb:
condition: service_started
postgres:
condition: service_started
redis:
condition: service_started
kafka:
condition: service_healthy
volumes:
- ./:/test
environment:
ELASTICSEARCH_URL: "http://elasticsearch:9200"
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
MONGODB_URI: "mongodb://mongodb:27017"
POSTGRES_URL: "postgresql://postgres@postgres/postgres"
REDIS_URL: "redis://redis:6379/0"
test-coverage:
<<: *test-config
command: tox run -e coverage -- --with-custom-logging