forked from the-bot-meek/foodOrder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1.14 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
version: '3.8'
services:
localstack:
container_name: 'localstack'
image: "localstack/localstack"
hostname: "localstack"
ports:
- "4566:4566"
environment:
- SERVICES=dynamodb,ssm,sts,cloudformation,iam
- PERSISTENCE=1
- DYNAMODB_SHARE_DB=1
volumes:
- "./local_stack:/etc/localstack/init/ready.d"
- "./dynamodb_volume:/var/lib/localstack"
- "./CDK:/CDK"
food-order-server:
container_name: "food-order-server"
image: "sharedfoodorder:latest"
ports:
- "8080:8080"
environment:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID:-123}"
AWS_SECRET_KEY: "${AWS_SECRET_KEY:-123}"
DYNAMODB_DOMAIN: "localstack"
MICRONAUT_ENVIRONMENTS: "mock_auth"
STATELESS_SESSION_AUTH: "${STATELESS_SESSION_AUTH:-true}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
depends_on:
- localstack
food-order-client:
container_name: "food-order-client"
image: "foodorderclient"
ports:
- "4200:4200"
depends_on:
- food-order-server