-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 992 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 992 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
35
36
37
38
services:
postgres:
image: postgres:16-alpine
container_name: template-db
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-backend_db}
ports:
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
container_name: template-redis
ports:
- "127.0.0.1:${REDIS_PORT:-6379}:6379"
volumes:
- redis_data:/data
localstack:
image: localstack/localstack:latest
container_name: template-localstack
environment:
SERVICES: s3,ses
DEBUG: ${LOCALSTACK_DEBUG:-0}
AWS_DEFAULT_REGION: ${AWS_REGION:-us-east-1}
ports:
- "127.0.0.1:4566:4566"
volumes:
- localstack_data:/var/lib/localstack
- ./localstack/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh:ro
volumes:
postgres_data:
redis_data:
localstack_data: