-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yml
157 lines (151 loc) · 3.67 KB
/
docker-compose.local.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
version: '3.7'
services:
kafka:
container_name: kafka
restart: always
image: confluentinc/cp-kafka:latest
ports:
- '9092:9092'
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
kafka-ui:
container_name: kafka-ui
image: provectuslabs/kafka-ui:latest
restart: always
ports:
- 9080:8080
depends_on:
- zookeeper
- kafka
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092
KAFKA_CLUSTERS_0_METRICS_PORT: 9997
zookeeper:
container_name: zookeeper
image: confluentinc/cp-zookeeper:latest
ports:
- 2181:2181
environment:
ZOOKEEPER_CLIENT_PORT: 2181
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- '27017:27017'
env_file:
- ./envs/.env.mongodb
volumes:
- ./mongodb_data:/data/db
mongoclient:
image: mongoclient/mongoclient:latest
container_name: mongoclient
hostname: mongoclient
depends_on:
- mongodb
ports:
- 3300:3000
postgres-keycloak:
restart: always
container_name: postgres-keycloak
image: postgres:latest
env_file:
- ./envs/.env.postgres-keycloak
volumes:
- ./postgres_keycloak_data:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
env_file:
- ./envs/.env.pgadmin
depends_on:
- postgres-keycloak
ports:
- 5050:80
volumes:
- ./pgadmin_data:/var/lib/pgadmin
keycloak:
container_name: keycloak
image: quay.io/keycloak/keycloak:20.0.2
hostname: keycloak
depends_on:
- postgres-keycloak
restart: always
env_file:
- ./envs/.env.keycloak
ports:
- '8080:8080'
command: start-dev
frontend:
container_name: frontend
build: ./frontend
# image: marcotommoro/cc-frontend:arm64
restart: always
ports:
- 3000:3000
environment:
# KEYCLOAK_HOSTNAME: 'keycloak:8080'
# BROKER_HOSTNAME: 'broker:5001'
# BROKER_HOSTNAME_EXTERNAL: '127.0.0.1:5001'
NEXT_PUBLIC_KEYCLOAK_HOSTNAME: 'https://auth.vera.kumori.cloud'
BROKER_HOSTNAME: 'server.vera.kumori.cloud'
BROKER_HOSTNAME_EXTERNAL: 'server.vera.kumori.cloud'
NEXT_PUBLIC_BROKER_HOSTNAME: 'https://server.vera.kumori.cloud'
NEXT_PUBLIC_S3_HOSTNAME: 'https://s3.vera.kumori.cloud'
env_file:
- ./envs/.env.common
# depends_on:
# - keycloak
# - observer
# - broker
volumes:
# # - ./frontend/pages:/app/pages
# # - ./frontend/components:/app/components
- ./frontend:/app
observer:
container_name: observer
# build: ./observer
image: marcotommoro/cc-observer:arm64
restart: always
depends_on:
- kafka
env_file:
- ./envs/.env.mongodb
- ./envs/.env.mongo-client
- ./envs/.env.common
volumes:
- ./observer/src:/app/src
broker:
container_name: broker
build: ./broker
restart: always
ports:
- 5001:5001
# depends_on:
# - kafka
environment:
KEYCLOAK_HOSTNAME: 'keycloak:8080'
env_file:
- ./envs/.env.mongodb
- ./envs/.env.broker
- ./envs/.env.mongo-client
- ./envs/.env.common
- ./envs/.env.minio
volumes:
- ./broker/src:/app/src
minio:
image: minio/minio:latest
container_name: minio
command: server /data
ports:
- '9000:9000'
env_file:
- ./envs/.env.minio
volumes:
- ./minio_data:/data