-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (53 loc) · 1.42 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
version: '3.8'
services:
customers:
build:
context: .
dockerfile: ./service-customers/Dockerfile
target: release
ports:
- 9701:9700
volumes:
- ./service-customers:/app
environment:
ENVIRONMENT: development
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: testing
AWS_SECRET_ACCESS_KEY: testing
AWS_ENDPOINT_URL: http://localstack:4566
DYNAMODB_CUSTOMERS_TABLE_NAME: customers
DYNAMODB_INBOX_TABLE_NAME: customers-inbox
DYNAMODB_OUTBOX_TABLE_NAME: customers-outbox
orders:
build:
context: .
dockerfile: ./service-orders/Dockerfile
target: release
ports:
- 9702:9700
volumes:
- ./service-orders:/app
environment:
ENVIRONMENT: development
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: testing
AWS_SECRET_ACCESS_KEY: testing
AWS_ENDPOINT_URL: http://localstack:4566
DYNAMODB_ORDERS_TABLE_NAME: orders
DYNAMODB_INBOX_TABLE_NAME: orders-inbox
DYNAMODB_OUTBOX_TABLE_NAME: orders-outbox
localstack:
image: localstack/localstack:2.2.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 4566:4566
dynamodb-admin:
image: aaronshaf/dynamodb-admin:4.6.1
ports:
- 8001:8001
environment:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: testing
AWS_SECRET_ACCESS_KEY: testing
DYNAMO_ENDPOINT: http://localstack:4566