-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
97 lines (95 loc) · 2.05 KB
/
docker-compose.yaml
File metadata and controls
97 lines (95 loc) · 2.05 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
94
95
96
97
version: '3.8'
name: demo
services:
frontend:
build:
context: ./frontend
ports:
- '8080:8080'
environment:
PORT: 8080
MEMBERSHIP_SERVICE_HOST: membership:8081
INVENTORY_SERVICE_HOST: inventory:8082
PRICING_SERVICE_HOST: pricing:8083
COUPON_SERVICE_HOST: coupon:8084
CURRENCY_SERVICE_HOST: nginx:8085
GEOLOCATION_SERVICE_HOST: geolocation:8086
SHIPPING_SERVICE_HOST: shipping:8087
membership:
build:
context: ./membership
ports:
- '8081:8081'
environment:
PORT: 8081
PRICING_SERVICE_HOST: pricing:8080
inventory:
build:
context: ./inventory
ports:
- '8082:8082'
environment:
PORT: 8082
PYTHONPATH: /opt/odigos-demo-inventory/site-packages
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
pricing:
build:
context: ./pricing
ports:
- '8083:8083'
environment:
HTTP_PORTS: 8083
coupon:
build:
context: ./coupon
ports:
- '8084:8084'
environment:
PORT: 8084
MEMBERSHIP_SERVICE_HOST: membership:8081
currency:
build:
context: ./currency
expose:
- '9000'
ports:
- '9000:9000'
environment:
PORT: 9000
GEOLOCATION_SERVICE_HOST: geolocation:8086
nginx:
image: nginx:alpine
depends_on:
- currency
ports:
- '8085:8085'
environment:
PORT: 8085
command: >
sh -c "echo '
server {
listen 8085;
server_name localhost;
location / {
include fastcgi_params;
fastcgi_pass currency:9000;
fastcgi_param SCRIPT_FILENAME /app/index.php;
}
}
' > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
geolocation:
build:
context: ./geolocation
ports:
- '8086:8086'
environment:
PORT: 8086
RAILS_MASTER_KEY: df0300c20246e24d331787f6540a72fa
shipping:
build:
context: ./shipping
ports:
- '8087:8087'
environment:
PORT: 8087