-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
128 lines (127 loc) · 2.92 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: '3.8'
networks:
vpc:
driver: bridge
services:
admin-proxy:
build: ./admin-proxy
ports:
- "8000:8000"
networks:
- vpc
env_file:
- ./admin-proxy/.env
environment:
- NODE_ENV=development #Use `development` or `production`
- REDIS_HOST=redis
- REDIS_PORT=6379
- AWS_DEFAULT_REGION=local #Change to `ap-southeast-1` for prod
- AWS_DYNAMODB_ENDPOINT=http://db:8000 #Comment this out to use prod db
- CLIENT_BASE_URL=http://localhost:5173 #Update to the url of the FE
- CLIENT_AUTH_REDIRECT_URL=http://localhost:5173/users #Update this to the FE url with the path to redirect the client to after authentication
- USER_MS=http://user:8080
- POINTS_MS=http://points:3000
- MAKER_CHECKER_MS=http://maker-checker:5000
- LOGGING_MS=http://logging:3000
depends_on:
- redis
- db
volumes:
- efs:/tmp
restart: always
logging:
build: ./logging
volumes:
- efs:/tmp
networks:
- vpc
depends_on:
- admin-proxy
- db
environment:
- AWS_REGION=local
- AWS_DYNAMODB_ENDPOINT=http://db:8000
- NODE_ENV=development #Use `development` or `production`
- REDIS_HOST=redis
- REDIS_PORT=6379
maker-checker:
build:
context: ./maker-checker
dockerfile: makerchecker.Dockerfile
networks:
- vpc
depends_on:
- db
- sqs
environment:
- AWS_REGION=local
- AWS_DYNAMODB_ENDPOINT=http://db:8000
- USER_MS=http://user:8080
- POINTS_MS=http://points:3000
- SQS_LOCAL_ENDPOINT=http://sqs:9324
- SQS_URL=http://sqs:9324/queue/default
- MAKER_CHECKER_PAGE_URL=https://api.itsag1t1.com/makerchecker
ports:
- 5001:5000 #Exposing 5001 port for tesing locally
points:
build: ./points-ledger
networks:
- vpc
depends_on:
- db
environment:
- AWS_REGION=local
- AWS_DYNAMODB_ENDPOINT=http://db:8000
ports:
- 3000:3000
user:
build: ./User
networks:
- vpc
environment:
- DYNAMODB_ENDPOINT=http://db:8000
- DYNAMODB_REGION=local
- DYNAMODB_ACCESS_KEY_ID=test
- DYNAMODB_SECRET_KEY=test
ports:
- 8080:8080
redis:
image: redis:alpine
restart: always
networks:
- vpc
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=redis
- HTTP_USER=default
- HTTP_PASSWORD=password
ports:
- 8081:8081
networks:
- vpc
depends_on:
- redis
db:
image: amazon/dynamodb-local
restart: unless-stopped
ports:
- 8001:8000
networks:
- vpc
depends_on:
- redis
volumes:
- dynamodb:/data
sqs:
image: roribio16/alpine-sqs:latest
ports:
- 9324:9324
- 9325:9325
stdin_open: true
tty: true
networks:
- vpc
volumes:
efs:
dynamodb: