-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-compose.yml
More file actions
221 lines (206 loc) · 6.23 KB
/
dev-compose.yml
File metadata and controls
221 lines (206 loc) · 6.23 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
version: '3.4'
services:
platform.dev:
container_name: platform8.dev
build:
context: ./
dockerfile: ./.devcontainer/Dockerfile
environment:
DOCKER_HOST: unix:///var/run/docker-host.sock
AWS_REGION: us-west-1
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
command: ./.devcontainer/scripts/setup.sh && sleep infinity
platform8.cognito:
container_name: platform8.cognito
build:
context: ./.devcontainer/cognito-local
dockerfile: Dockerfile
ports:
- "9229:9229"
volumes:
- ./.devcontainer/.cognito:/cognito-local/.cognito
- ./.devcontainer/cognito-local/src:/cognito-local/src
platform8.ses:
container_name: platform8.ses
build:
context: ./.devcontainer/aws-ses-local
dockerfile: Dockerfile
ports:
- "9001:9001"
volumes:
- ./.devcontainer/.ses/output:/aws-ses-local/output
- ./.devcontainer/.ses/email-templates:/aws-ses-local/email-templates
- ./.devcontainer/aws-ses-local/src:/aws-ses-local/src
- ./.devcontainer/aws-ses-local/src/templates:/aws-ses-local/build/templates
platform8.mysql:
container_name: platform8.mysql
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- ./.devcontainer/mysql/my.cnf:/etc/my.cnf
environment:
MYSQL_ROOT_PASSWORD: P@ssw0rd!
platform8.sfn:
container_name: platform8.sfn
image: amazon/aws-stepfunctions-local
ports:
- "8083:8083"
environment:
AWS_ACCOUNT_ID: 101010101010
AWS_DEFAULT_REGION: us-west-1
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
# WAIT_TIME_SCALE: VALUE
LAMBDA_ENDPOINT: http://platform8.sls:3002
# BATCH_ENDPOINT: VALUE
DYNAMODB_ENDPOINT: http://platform8.dynamodb:8000
# ECS_ENDPOINT: VALUE
# GLUE_ENDPOINT: VALUE
# SAGE_MAKER_ENDPOINT: VALUE
# SQS_ENDPOINT: VALUE
SNS_ENDPOINT: http://platform8.sls:4002
platform8.dynamodb:
container_name: platform8.dynamodb
image: amazon/dynamodb-local
ports:
- "8000:8000"
volumes:
- ./.devcontainer/.db:/home/dynamodblocal/db
command: ["-jar", "DynamoDBLocal.jar", "-sharedDb", "-dbPath", "/home/dynamodblocal/db"]
platform8.dynamodb.admin:
container_name: platform8.dynamodb.admin
image: aaronshaf/dynamodb-admin
ports:
- 8001:8001
environment:
DYNAMO_ENDPOINT: http://platform8.dynamodb:8000
platform8.accounts:
container_name: platform8.accounts
build:
args:
Port: 5001
context: .
dockerfile: ./.devcontainer/local-service.Dockerfile
ports:
- "5001:5001"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:5001
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
command: sh -c "dockerize -wait tcp://platform8.mysql:3306 -timeout 300s -wait-retry-interval 3s dotnet Accounts.Api.dll"
volumes:
- ./services/Accounts/Api:/Api
- ./.devcontainer/vsdbg:/vsdbg
platform8.budgets:
container_name: platform8.budgets
build:
args:
Port: 5003
context: .
dockerfile: ./.devcontainer/local-service.Dockerfile
ports:
- "5003:5003"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:5003
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
command: sh -c "dockerize -wait tcp://platform8.mysql:3306 -timeout 300s -wait-retry-interval 3s dotnet Budgets.Api.dll"
volumes:
- ./services/Budgets/Api:/Api
- ./.devcontainer/vsdbg:/vsdbg
platform8.expenses:
container_name: platform8.expenses
build:
args:
Port: 5004
context: .
dockerfile: ./.devcontainer/local-service.Dockerfile
ports:
- "5004:5004"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:5004
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
command: sh -c "dockerize -wait tcp://platform8.mysql:3306 -timeout 300s -wait-retry-interval 3s dotnet Expenses.Api.dll"
volumes:
- ./services/Expenses/Api:/Api
- ./.devcontainer/vsdbg:/vsdbg
platform8.transactions:
container_name: platform8.transactions
build:
args:
Port: 5002
context: .
dockerfile: ./.devcontainer/local-service.Dockerfile
ports:
- "5002:5002"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:5002
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
command: sh -c "dockerize -wait tcp://platform8.mysql:3306 -timeout 300s -wait-retry-interval 3s dotnet Transactions.Api.dll"
volumes:
- ./services/Transactions/Api:/Api
- ./.devcontainer/vsdbg:/vsdbg
platform8.user:
container_name: platform8.user
build:
args:
Port: 5000
context: .
dockerfile: ./.devcontainer/local-service.Dockerfile
ports:
- "5000:5000"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:5000
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
command: sh -c "dockerize -wait tcp://platform8.mysql:3306 -timeout 300s -wait-retry-interval 3s dotnet User.Api.dll"
volumes:
- ./services/User/Api:/Api
- ./.devcontainer/vsdbg:/vsdbg
platform8.web:
container_name: platform8.web
image: node:14
ports:
- "8080:8080"
working_dir: /vite-client
command: sh -c "npm run dev:client:docker"
volumes:
- .:/vite-client
platform8.sls:
container_name: platform8.sls
build:
context: .
dockerfile: ./.devcontainer/sls-local.Dockerfile
tty: true
stdin_open: true
ports:
- "3001:3001"
- "3002:3002"
- "4002:4002"
- "4569:4569"
environment:
AWS_ACCOUNT_ID: 101010101010
AWS_REGION: us-west-1
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
command: sh -c "npm run dev:sls"
volumes:
- .:/sls-offline
platform8.storybooks:
container_name: platform8.storybooks
image: node:14
ports:
- "6006:6006"
working_dir: /workspace
command: sh -c "npm run deploy-storybook:local && npx http-server -p 6006 storybooks"
volumes:
- .:/workspace