-
Notifications
You must be signed in to change notification settings - Fork 161
/
docker-compose.base.yml
53 lines (49 loc) · 1.26 KB
/
docker-compose.base.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
43
44
45
46
47
48
49
50
51
52
53
version: "3.8"
services:
redis:
image: redis/redis-stack:latest
restart: always
ports:
- "6379:6379"
- "8001:8001"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: "5s"
networks:
- host
postgres:
image: postgres:15
restart: always
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
PGUSER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 10s
timeout: 5s
retries: 5
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack}"
image: localstack/localstack:latest
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559"
environment:
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
- LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:-}
- DEBUG=${DEBUG:-0}
- SERVICES=s3:4566
- HOSTNAME=localstack
- HOSTNAME_EXTERNAL=localstack
- DEFAULT_REGION=us-east-2
- DISABLE_CUSTOM_CORS_S3=true
- DISABLE_CORS_CHECKS=true
- EXTRA_CORS_ALLOWED_ORIGINS=*
networks:
- host
networks:
host: