-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·75 lines (72 loc) · 1.63 KB
/
setup.sh
File metadata and controls
executable file
·75 lines (72 loc) · 1.63 KB
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
#!/bin/bash
# Create necessary directories
mkdir -p rabbitmq
mkdir -p init-db
# Create RabbitMQ definitions file for queue setup
cat > rabbitmq/definitions.json << 'EOF'
{
"rabbit_version": "3.12.0",
"rabbitmq_version": "3.12.0",
"users": [
{
"name": "guest",
"password_hash": "QR7nLK5QLMx24gCKlTJM3Ocuk78gQ1NKHNKdqNwYZr8C9J4H",
"hashing_algorithm": "rabbit_password_hashing_sha256",
"tags": ["administrator"]
}
],
"vhosts": [
{
"name": "/"
}
],
"permissions": [
{
"user": "guest",
"vhost": "/",
"configure": ".*",
"write": ".*",
"read": ".*"
}
],
"queues": [
{
"name": "collection.ledger.request.v1",
"vhost": "/",
"durable": true,
"auto_delete": false,
"arguments": {}
},
{
"name": "spending.ledger.request.v1",
"vhost": "/",
"durable": true,
"auto_delete": false,
"arguments": {}
}
],
"exchanges": [
{
"name": "",
"vhost": "/",
"type": "direct",
"durable": true,
"auto_delete": false,
"internal": false,
"arguments": {}
}
],
"bindings": []
}
EOF
echo "Setup complete!"
echo "Created:"
echo " - rabbitmq/ directory with configuration"
echo " - init-db/ directory for database initialization"
echo ""
echo "Next steps:"
echo "1. Run: chmod +x setup.sh && ./setup.sh (if you haven't already)"
echo "2. Run: docker-compose up --build"
echo "3. Your app will be available at: http://localhost:8065"
echo "4. RabbitMQ Management UI: http://localhost:15672 (guest/guest)"
echo "5. Swagger UI: http://localhost:8065/swagger-ui.html"