-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 894 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (31 loc) · 894 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
33
34
version: '3.8'
services:
postgresqldb:
image: postgres:18.0-alpine
environment:
- POSTGRES_USER=appuser
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=appdb
ports:
- "5432:5432"
networks:
- aws-lambda
localstack:
image: localstack/localstack:4.10.0
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
- DEBUG=${DEBUG-}
- DOCKER_HOST=unix:///var/run/docker.sock
- SERVICES=lambda
- LAMBDA_RUNTIME_ENVIRONMENT_TIMEOUT=30
volumes:
- "../target:/localstackTemp"
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- "../.localstack:/etc/localstack/init/ready.d" # ready hook
networks:
- aws-lambda
networks:
aws-lambda: