forked from Bonizozo/stellar-tipjar-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.services.yml
More file actions
93 lines (85 loc) · 1.84 KB
/
Copy pathdocker-compose.services.yml
File metadata and controls
93 lines (85 loc) · 1.84 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3.8'
services:
creator-service:
build:
context: .
dockerfile: Dockerfile
environment:
- SERVICE_NAME=creator-service
- PORT=8001
- DATABASE_URL=postgres://user:password@postgres:5432/tipjar
ports:
- "8001:8001"
depends_on:
- postgres
- redis
tip-service:
build:
context: .
dockerfile: Dockerfile
environment:
- SERVICE_NAME=tip-service
- PORT=8002
- DATABASE_URL=postgres://user:password@postgres:5432/tipjar
ports:
- "8002:8002"
depends_on:
- postgres
- redis
wallet-service:
build:
context: .
dockerfile: Dockerfile
environment:
- SERVICE_NAME=wallet-service
- PORT=8003
- DATABASE_URL=postgres://user:password@postgres:5432/tipjar
ports:
- "8003:8003"
depends_on:
- postgres
api-gateway:
build:
context: .
dockerfile: Dockerfile
environment:
- SERVICE_NAME=api-gateway
- PORT=8000
ports:
- "8000:8000"
depends_on:
- creator-service
- tip-service
- wallet-service
postgres:
image: postgres:15
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=tipjar
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7
ports:
- "6379:6379"
rabbitmq:
image: rabbitmq:3.13-management
ports:
- "5672:5672" # AMQP
- "15672:15672" # Management UI (guest/guest)
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
volumes:
- rabbitmq_data:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
rabbitmq_data: