-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe2e-docker-compose.yaml
88 lines (80 loc) · 1.91 KB
/
e2e-docker-compose.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
volumes:
journey_database:
post_database:
rabbitmq:
services:
rabbitmq:
image: ghcr.io/aleksandrakrasteva/rabbitmq:dev
ports:
- 5672:5672
- 15672:15672
volumes:
- ./RabbitMQ/config/definitions.json:/etc/rabbitmq/definitions.json
- ./RabbitMQ/config/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
postservice:
image: ghcr.io/aleksandrakrasteva/post-service:dev
environment:
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USER=guest
- RABBITMQ_PASS=guest
- POST_DB_HOST=post_db
- POST_DB_PORT=5432
- POST_DB_USER=postgres
- POST_DB_PASS=postgres
build:
context: ./PostManagement
ports:
- 8082:8080
depends_on:
- post_db
- rabbitmq
- gateway
journeyservice:
image: ghcr.io/aleksandrakrasteva/journey-service:dev
environment:
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USER=guest
- RABBITMQ_PASS=guest
- JOURNEY_DB_HOST=journey_db
- JOURNEY_DB_PORT=5432
- JOURNEY_DB_USER=postgres
- JOURNEY_DB_PASS=postgres
build:
context: ./JourneyService
ports:
- 8081:8080
depends_on:
- journey_db
- rabbitmq
- gateway
post_db:
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=posts
ports:
- '5432:5432'
volumes:
- ./volumes/post:/data
journey_db:
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=journey
ports:
- '5433:5432'
volumes:
- ./volumes/post:/data
gateway:
image: devopsfaith/krakend
volumes:
- ./Krakend/config_dev/krakend.json:/etc/krakend.json
ports:
- "1234:1234"
- "8080:8080"
- "8090:8090"
command: ["run", "-d", "-c", "/etc/krakend.json"]