-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
57 lines (50 loc) · 1.03 KB
/
docker-compose.yml
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
version: "2"
services:
redis:
image: redis:4-alpine
command: ["redis-server", "--appendonly", "yes"]
hostname: redis
volumes:
- redis-data:/data
rabbit:
image: rabbitmq:3-management
ports:
- "15672:15672"
airports:
build:
context: airports
depends_on:
- rabbit
environment:
REDIS_HOST: "redis"
REDIS_PORT: "6379"
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbit"
RABBIT_PORT: "5672"
trips:
build:
context: trips
depends_on:
- rabbit
environment:
REDIS_HOST: "redis"
REDIS_PORT: "6379"
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbit"
RABBIT_PORT: "5672"
gateway:
build:
context: gateway
depends_on:
- rabbit
ports:
- "8000:8000"
environment:
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbit"
RABBIT_PORT: "5672"
volumes:
redis-data: