forked from ACloudGuru-Resources/Course_Practical_Guide_EKS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
65 lines (60 loc) · 1.69 KB
/
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
version: "3"
services:
resources-api:
build: ./resource-api/src
ports:
- "5000:5000"
environment:
DYNAMODB_TABLE: development-resources
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_XRAY_SDK_ENABLED: "false"
inventory-api:
build: ./inventory-api/src
ports:
- 5001:5001
links:
- resources-api
environment:
DYNAMODB_TABLE: development-inventory
RESOURCE_API_ENDPOINT: http://resources-api:5000
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
clients-api:
build: ./clients-api/src
ports:
- "5003:5003"
environment:
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
renting-api:
build: ./renting-api/api
ports:
- "5004:3000"
environment:
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
DYNAMODB_TABLE: development-renting
INVENTORY_API_ENDPOINT: http://inventory-api:5001
CLIENTS_API_ENDPOINT: http://clients-api:5003
RESOURCES_API_ENDPOINT: http://resources-api:5000
proxy:
image: nginx:stable-alpine
ports:
- 80:80
depends_on:
- resources-api
- inventory-api
- front-end
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
front-end:
build: ./front-end
ports:
- "5002:80"
volumes:
- ./front-end-config.json:/usr/share/nginx/html/assets/json/config.json