-
Notifications
You must be signed in to change notification settings - Fork 8
/
compose.override.yaml
91 lines (80 loc) · 2.76 KB
/
compose.override.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
# development configuration
services:
book-service:
ports:
# this is needed to access the service's endpoints from a host machine
- "8091:8080"
notification-service:
ports:
# this is needed to access the service's endpoints from a host machine
- "8093:8080"
book-db:
ports:
# this is needed to access the database from a host machine (when the appropriate service is running not in a Docker container)
- "5491:5432"
user-db:
ports:
# this is needed to access the database from a host machine (when the appropriate service is running not in a Docker container)
- "5492:5432"
notification-db:
ports:
# this is needed to access the database from a host machine (when the appropriate service is running not in a Docker container)
- "5493:5432"
kafka-connect:
ports:
# this is needed to access Kafka Connect REST API from a host machine
- "8083:8083"
schema-registry:
environment:
QUARKUS_HTTP_CORS_ORIGINS: http://localhost:8103
ports:
# this is needed to access Apicurio Registry from a host machine
- "8080:8080"
schema-registry-ui:
image: apicurio/apicurio-registry-ui:3.0.3
container_name: schema-registry-ui
restart: always
ports:
# this is needed to access Apicurio Registry UI from a host machine
- "8103:8080"
# MONITORING TOOLS
kafka-ui:
image: provectuslabs/kafka-ui:v0.7.2
container_name: kafka-ui
restart: always
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092
ports:
# this is needed to access the UI from a host machine
- "8101:8080"
pgadmin:
image: dpage/pgadmin4:8.12
container_name: pgadmin
restart: always
# DO NOT USE SUCH A SETUP FOR PROD!
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: some_password
PGADMIN_CONFIG_SERVER_MODE: "False"
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False"
ports:
# this is needed to access pgAdmin UI from a host machine
- "8102:80"
volumes:
- ./misc/pgadmin/servers.json:/pgadmin4/servers.json:ro
- ./misc/pgadmin/pgpass:/tmp/pgpass:ro
- ./misc/pgadmin/preferences.json:/pgadmin4/preferences.json:ro
# DO NOT PASS CREDENTIALS THIS WAY IN REAL ENVIRONMENTS!
# Using `pgpass` and passing it as follows allows you to save yourself the trouble of entering Postgres DB credentials in pgAdmin to connect to the databases every time you restart the project
entrypoint: >
/bin/sh -c "
cp -f /tmp/pgpass /var/lib/pgadmin/;
chmod 600 /var/lib/pgadmin/pgpass;
/entrypoint.sh
"
caddy:
build:
context: ./misc/caddy/
environment:
DOMAIN: localhost