-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yaml
74 lines (69 loc) · 1.7 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
version: "3.7"
services:
kafka_producer_php:
image: anamhossain/php-kafka:latest
volumes:
- ./:/var/www/
environment:
DB_CONNECTION: mysql
DB_HOST: kafka_producer_mysql_db
DB_PORT: 3306
KAFKA_BROKERS: kafka:9092
networks:
- default
- proxynet
kafka_producer_nginx:
image: anamhossain/php-nginx:latest
environment:
NGINX_ROOT: "/var/www/public"
NGINX_FPM_HOST: kafka_producer_php
ports:
- 8787:80
depends_on:
- kafka_producer_php
networks:
- default
- proxynet
kafka_producer_mysql_db:
image: mysql:5
restart: always
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: E8UQxEFic
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
ports:
- "3407:3306"
volumes:
- "./storage/db-data:/var/lib/mysql"
zookeper:
image: confluentinc/cp-zookeeper:latest
ports:
- "2185:2181"
environment:
- ZOOKEEPER_CLIENT_PORT=2181
volumes:
- "./storage/zookeeper/data:/var/lib/zookeeper/data"
- "./storage/zookeeper/log:/var/lib/zookeeper/log"
- "./storage/zookeeper/secrets:/var/lib/zookeeper/secrets"
networks:
- default
- proxynet
kafka:
image: confluentinc/cp-kafka:latest
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeper:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
depends_on:
- zookeper
volumes:
- "./storage/kafka/data:/var/lib/kafka/data"
- "./storage/kafka/secrets:/var/lib/kafka/secrets"
networks:
- default
- proxynet
networks:
proxynet:
name: pub_sub_network
external: true