-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (52 loc) · 1.21 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
version: '3.7'
services:
# Proxies requests to internal services
reverseproxy:
image: sdkdeepa/reverseproxy
container_name: reverseproxy
build:
context: ./reverse-proxy
depends_on:
- feed-service
- user-service
ports:
- 8080:8080
restart: always
# Retrieves the user microservice
user-service:
image: sdkdeepa/user-service
container_name: user-service
build:
context: ./udagram-api-user
environment:
POSTGRES_USERNAME:
POSTGRES_PASSWORD:
POSTGRES_HOST:
POSTGRES_DATABASE:
AWS_MEDIA_BUCKET:
AWS_REGION:
AWS_PROFILE:
JWT_SECRET:
# Generates the feed microservice
feed-service:
image: sdkdeepa/feed-service
container_name: feed-service
volumes:
- $HOME/.aws:/root/.aws
build:
context: ./udagram-api-feed
environment:
POSTGRES_USERNAME:
POSTGRES_PASSWORD:
POSTGRES_HOST:
POSTGRES_DATABASE:
AWS_MEDIA_BUCKET:
AWS_REGION:
AWS_PROFILE:
JWT_SECRET:
# Generates Client
udagram-frontend:
image: sdkdeepa/udagram-frontend
container_name: udagram-frontend
ports:
- 8100:80