-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (38 loc) · 1.22 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
version: '3.8'
services:
localstack:
container_name: '${LOCALSTACK_DOCKER_NAME-localstack_main}'
image: localstack/localstack-pro
ports:
- '127.0.0.1:4566:4566' # LocalStack Gateway
- '127.0.0.1:4510-4559:4510-4559' # external services port range
- '127.0.0.1:53:53' # DNS config
- '127.0.0.1:53:53/udp' # DNS config
- '127.0.0.1:443:443' # LocalStack HTTPS Gateway
environment:
- DEBUG=${DEBUG-}
- PERSISTENCE=${PERSISTENCE-}
- ENFORCE_IAM=1
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY-}
- DOCKER_HOST=unix:///var/run/docker.sock
networks:
default:
aliases:
- localhost.localstack.cloud
- lambda-bucket.s3.localhost.localstack.cloud
- raw-data.s3.localhost.localstack.cloud
- transformed-data.s3.localhost.localstack.cloud
volumes:
- '${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack'
- '/var/run/docker.sock:/var/run/docker.sock'
infrastructure:
build:
context: .
dockerfile: Dockerfile
environment:
AWS_ACCESS_KEY_ID: na
AWS_SECRET_ACCESS_KEY: na
AWS_DEFAULT_REGION: us-east-1
depends_on:
localstack:
condition: service_healthy