-
Notifications
You must be signed in to change notification settings - Fork 90
/
docker-compose.yml
93 lines (88 loc) · 2.31 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
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: "2"
services:
rabbit:
container_name: nameko-example-rabbitmq
image: rabbitmq:3.7-management
ports:
- "15673:15672" # Exposing RabbitMQ web management on different port for convenience
restart: always
postgres:
container_name: nameko-example-postgres
image: postgres
ports:
- "5433:5432" # Exposing Postgres on different port for convenience
environment:
POSTGRES_DB: "orders"
POSTGRES_PASSWORD: "password"
POSTGRES_USER: "postgres"
restart: always
redis:
container_name: nameko-example-redis
image: redis
ports:
- "6380:6379" # Exposing Redis on different port for convenience
command: [
"bash", "-c",
'
docker-entrypoint.sh
--requirepass password
'
]
restart: always
orders:
container_name: nameko-example-orders
image: nameko/nameko-example-orders:latest
depends_on:
- rabbit
- postgres
ports:
- "8001:8000"
links:
- "rabbit:nameko-example-rabbitmq"
- "postgres:nameko-example-postgres"
environment:
DB_PASSWORD: "password"
DB_USER: "postgres"
DB_HOST: "postgres"
DB_NAME: "orders"
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbit"
RABBIT_PORT: "5672"
RABBIT_MANAGEMENT_PORT: "15672"
products:
container_name: nameko-example-products
image: nameko/nameko-example-products:latest
depends_on:
- rabbit
- redis
ports:
- "8002:8000"
links:
- "rabbit:nameko-example-rabbitmq"
- "redis:nameko-example-redis"
environment:
REDIS_HOST: "redis"
REDIS_PORT: "6379"
REDIS_INDEX: "11"
REDIS_PASSWORD: "password"
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbit"
RABBIT_PORT: "5672"
RABBIT_MANAGEMENT_PORT: "15672"
gateway:
container_name: nameko-example-gateway
image: nameko/nameko-example-gateway:latest
depends_on:
- rabbit
ports:
- "8003:8000"
links:
- "rabbit:nameko-example-rabbitmq"
environment:
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbit"
RABBIT_PORT: "5672"
RABBIT_MANAGEMENT_PORT: "15672"