Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ services:
image: dpage/pgadmin4:9.2.0
ports:
- "5050:80"
volumes:
- ./dev/pgadmin/servers.json:/pgadmin4/servers.json
- ./dev/pgadmin/pgpass:/config/pgpass
configs:
- source: pgadmin-pgpass
target: /config/pgpass
uid: "5050"
gid: "5050"
mode: 0400
- source: pgadmin-servers
target: /pgadmin4/servers.json
mode: 0444
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: secret
Expand Down Expand Up @@ -88,3 +94,23 @@ services:
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9093
depends_on:
- kafka

configs:
pgadmin-pgpass:
content: |
*:*:*:postgres:postgres
pgadmin-servers:
content: |
{
"Servers": {
"1": {
"Name": "Local Postgres",
"Group": "Servers",
"Host": "postgres",
"Port": 5432,
"MaintenanceDB": "postgres",
"Username": "postgres",
"PassFile": "/config/pgpass"
}
}
}
8 changes: 6 additions & 2 deletions demo/ai-add-service/demo.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/compose.yaml b/compose.yaml
index eaa1b8d..671ee5d 100644
index 3393a28..2aacd8f 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -78,13 +78,3 @@ services:
@@ -84,17 +84,6 @@ services:
post_start:
- command: /opt/kafka/bin/kafka-topics.sh --create --if-not-exists --topic products --partitions 1 --replication-factor 1 --bootstrap-server kafka:9093

Expand All @@ -16,3 +16,7 @@ index eaa1b8d..671ee5d 100644
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9093
- depends_on:
- - kafka
-
configs:
pgadmin-pgpass:
content: |
1 change: 0 additions & 1 deletion dev/pgadmin/pgpass

This file was deleted.

13 changes: 0 additions & 13 deletions dev/pgadmin/servers.json

This file was deleted.

Loading