-
Notifications
You must be signed in to change notification settings - Fork 130
/
docker-compose.base.yml
66 lines (61 loc) · 1.62 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
54
55
56
57
58
59
60
61
62
63
64
65
66
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
POSTGRES_DB: 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=*
aws-cli:
image: amazon/aws-cli
depends_on:
- localstack
environment:
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_DEFAULT_REGION=us-east-2
entrypoint: /bin/sh -c
command: >
"
aws --endpoint-url=http://localstack:4566 s3api create-bucket --bucket quadratic-api-docker --region us-east-1
"
networks:
host: