-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (56 loc) · 1.55 KB
/
docker-compose.yml
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
services:
tgtime-notifier-app:
env_file:
- .env
build:
context: .
dockerfile: ./docker/app/Dockerfile
container_name: tgtime-notifier-app
ports:
- "${HTTP_PORT}:${HTTP_PORT}"
networks:
- tgtime-notifier-network
depends_on:
tgtime-api:
condition: service_healthy
tgtime-api:
build:
context: .
dockerfile: ./docker/tgtime-api/Dockerfile
environment:
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/initializerJson.json
MOCKSERVER_LOG_LEVEL: INFO
MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
volumes:
- ./docker/tgtime-api/config:/config
- ./docker/tgtime-api/config/mockserver.properties:/config/mockserver.properties
networks:
- tgtime-notifier-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:1080/liveness/probe"]
interval: 10s
timeout: 10s
retries: 5
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
- ZOOKEEPER_CLIENT_PORT=2181
networks:
- tgtime-notifier-network
kafka:
image: confluentinc/cp-kafka:latest
container_name: kafka
depends_on:
- zookeeper
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_LOG_RETENTION_MS=10000
- KAFKA_CLEANUP_POLICY=delete
- KAFKA_CLEANUP_ENABLE=true
- KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS=5000
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
networks:
- tgtime-notifier-network
networks:
tgtime-notifier-network:
driver: bridge