-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
57 lines (53 loc) · 1.33 KB
/
Copy pathcompose.yml
File metadata and controls
57 lines (53 loc) · 1.33 KB
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
name: dropit
services:
db:
image: mysql:8.4
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "127.0.0.1:${DB_PORT}:3306"
volumes:
- mysql-data:/var/lib/mysql
healthcheck:
test: [ "CMD-SHELL", 'mysqladmin ping -h localhost -u root --password="$$MYSQL_ROOT_PASSWORD"' ]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
redis:
image: redis:7.4-alpine
ports:
- "127.0.0.1:${REDIS_PORT}:6379"
volumes:
- redis-data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 3s
retries: 10
localstack:
image: localstack/localstack:4.14.0
profiles: [ "local-aws" ]
environment:
AWS_DEFAULT_REGION: ap-northeast-2
SERVICES: sqs,ses
PERSISTENCE: "1"
SQS_ENDPOINT_STRATEGY: path
ports:
- "127.0.0.1:4566:4566"
volumes:
- localstack-data:/var/lib/localstack
- ./localstack/init:/etc/localstack/init/ready.d
healthcheck:
test: [ "CMD-SHELL", "curl -fs http://localhost:4566/_localstack/health" ]
interval: 5s
timeout: 5s
retries: 20
start_period: 10s
volumes:
mysql-data:
redis-data:
localstack-data: