-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (72 loc) · 1.5 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
version: "2"
services:
pgAdmin:
image: 'dpage/pgadmin4'
environment:
- PGADMIN_DEFAULT_PASSWORD=admin_password
ports:
- 1234:80
postgres:
image: 'postgres:latest'
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
zookeeper:
image: docker.io/bitnami/zookeeper:3.7
ports:
- "2181:2181"
volumes:
- "zookeeper_data:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
restart: 'unless-stopped'
image: docker.io/bitnami/kafka:2.7.0
hostname: kafka
ports:
- "9092:9092"
volumes:
- "kafka_data:/bitnami"
environment:
- KAFKA_ADVERTISED_HOST_NAME=kafka
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_ADVERTISED_PORT=9092
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
worker:
restart: 'unless-stopped'
build:
dockerfile: 'DotnetK8S.Worker/Dockerfile'
context: .
depends_on:
- kafka
api:
build:
dockerfile: 'DotnetK8S.Server/Dockerfile'
context: .
ports:
- "8080:80"
depends_on:
- kafka
client:
build:
dockerfile: 'Dockerfile'
context: ./client
ports:
- "3000:3000"
depends_on:
- server
nginx:
build:
dockerfile: Dockerfile
context: ./nginx
ports:
- '3050:80'
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local