-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (87 loc) · 1.85 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
96
97
version: '3'
networks:
default:
services:
kafka:
image: wurstmeister/kafka
container_name: kafka
ports:
- 9092:9092
environment:
- KAFKA_ADVERTISED_HOST_NAME=127.0.0.1
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
depends_on:
- zookeeper
zookeeper:
image: wurstmeister/zookeeper
ports:
- 2181:2181
environment:
- KAFKA_ADVERTISED_HOST_NAME=zookeeper
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres:/data/postgres
ports:
- 5432:5432
networks:
- default
consumer:
build:
context: consumer
dockerfile: Dockerfile
container_name: consumer
ports:
- 8812:8812
environment:
SPRING_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
KAFKA_BOOTSTRAP_SERVER: kafka:9092
SPRING_REDIS_HOST: redis
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/postgres
depends_on:
- redis
- kafka
- postgres
networks:
- default
supplier:
build:
context: supplier
dockerfile: Dockerfile
container_name: supplier
ports:
- 8811:8811
environment:
SPRING_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
KAFKA_BOOTSTRAP_SERVER: kafka:9092
depends_on:
- kafka
networks:
- default
redis:
image: redis
container_name: redis
ports:
- 6379:6379
networks:
- default
redis-commander:
container_name: redis-commander
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
depends_on:
- redis
ports:
- 8813:8081
networks:
- default
volumes:
postgres:
pgadmin: