-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 789 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 789 Bytes
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
version: "3.9"
services:
localstack:
image: localstack/localstack:3.7.2
container_name: localstack-s3
ports:
- "4566:4566"
environment:
SERVICES: s3
AWS_DEFAULT_REGION: ap-south-1
healthcheck:
test: ["CMD", "bash", "-c", "awslocal s3 ls >/dev/null 2>&1 || exit 1"]
interval: 10s
timeout: 5s
retries: 10
app:
build: .
container_name: springboot-s3-app
depends_on:
localstack:
condition: service_healthy
ports:
- "8080:8080"
environment:
APP_S3_BUCKET: demo-bucket
APP_AWS_REGION: ap-south-1
APP_S3_ENDPOINT: http://localstack:4566
APP_AWS_ACCESS_KEY: test
APP_AWS_SECRET_KEY: test
APP_S3_PATH_STYLE: "true"
APP_S3_AUTO_CREATE_BUCKET: "true"