This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yaml
102 lines (93 loc) · 2.43 KB
/
docker-compose.dev.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.9"
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
ports:
- "22181:22181"
environment:
ZOOKEEPER_CLIENT_PORT: 22181
kafka:
image: confluentinc/cp-kafka:latest
ports:
- "19092:19092"
- "19091:19091"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:22181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
depends_on:
- zookeeper
# kafka-gui:
# container_name: kafka-gui
# image: sheepkiller/kafka-manager:latest
# ports:
# - "9000:9000"
# environment:
# - "ZK_HOSTS=${IP}:22181"
# - "APPLICATION_SECRET=letmein"
# - "KM_ARGS=-Djava.net.preferIPv4Stack=true"
# depends_on:
# - kafka
redis:
image: bitnami/redis
environment:
- REDIS_PASSWORD=${REDIS_PASS}
ports:
- "${REDIS_PORT}:6379"
database:
image: postgres:alpine
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
ports:
- "${DB_PORT}:5432"
networks:
- backend
workflow-api:
image: area/workflow-api
build:
context: ../backend
dockerfile: workflowAPI/Dockerfile
environment:
- API_HOST=0.0.0.0
- API_PORT=$WORKFLOW_API_PORT
- DB_HOST=database
- DB_PORT
- DB_URL=postgresql://$DB_USER:$DB_PASS@database:$DB_PORT/$DB_NAME?schema=$DB_WORKFLOW_SCHEMA
ports:
- "${WORKFLOW_API_PORT}:${WORKFLOW_API_PORT}"
networks:
- backend
depends_on:
- database
credential-api:
image: area/credential-api
build:
context: ../backend
dockerfile: credentialAPI/Dockerfile
environment:
- API_HOST=0.0.0.0
- API_PORT=$CREDENTIAL_API_PORT
- DB_HOST=database
- DB_PORT
- DB_URL=postgresql://$DB_USER:$DB_PASS@database:$DB_PORT/$DB_NAME?schema=$DB_CREDENTIAL_SCHEMA
ports:
- "${CREDENTIAL_API_PORT}:${CREDENTIAL_API_PORT}"
networks:
- backend
depends_on:
- database
grpc-doc:
image: area/grpc-doc
build:
context: ../protos
dockerfile: Dockerfile
ports:
- "${GRPC_DOC_PORT}:80"
networks:
backend: