-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
95 lines (89 loc) · 1.88 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
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
version: "3"
services:
db:
image: postgres
restart: on-failure
container_name: db
ports:
- 5433:5432
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_USER_PASSWORD}
networks:
- app-tier
backend:
env_file:
.env
build:
context: ./backend
command: gradle bootRun
container_name: backend
ports:
- 8080:8080
environment:
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
networks:
- app-tier
depends_on:
- db
- kafka
restart: on-failure
tty: true
zookeeper:
image: confluentinc/cp-zookeeper
container_name: zookeeper
environment:
- ZOOKEEPER_CLIENT_PORT=2181
ports:
- 2181:2181
networks:
- app-tier
kafka:
image: confluentinc/cp-kafka
ports:
- 9092:9092
container_name: kafka
restart: on-failure
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: dresses:1:1,ratings:1:1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
networks:
- app-tier
kafdrop:
image: obsidiandynamics/kafdrop:latest
ports:
- 9000:9000
container_name: kafdrop
restart: on-failure
environment:
KAFKA_BROKERCONNECT: kafka:9092
JVM_OPTS: "-Xms32M -Xmx64M"
SERVER_SERVLET_CONTEXTPATH: /
depends_on:
- kafka
networks:
- app-tier
tty: true
ai:
build:
context: ./ai
container_name: ai
restart: on-failure
depends_on:
- kafka
- backend
networks:
- app-tier
tty: true
networks:
app-tier:
driver: bridge