-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
51 lines (48 loc) · 1.17 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
51 lines (48 loc) · 1.17 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
services:
mysql:
image: mysql:8.4
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: shiro_email
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-proot"]
interval: 5s
timeout: 3s
retries: 10
ports:
- "3306:3306"
volumes:
- mysql_dev_data:/var/lib/mysql
redis:
image: redis:7-alpine
restart: unless-stopped
command: >-
sh -c 'if [ -n "$$REDIS_PASSWORD" ]; then exec redis-server --requirepass "$$REDIS_PASSWORD"; else exec redis-server; fi'
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD:-}
healthcheck:
test:
[
"CMD-SHELL",
"if [ -n \"$${REDIS_PASSWORD}\" ]; then redis-cli -a \"$${REDIS_PASSWORD}\" ping; else redis-cli ping; fi",
]
interval: 5s
timeout: 3s
retries: 10
ports:
- "6379:6379"
volumes:
- redis_dev_data:/data
mailpit:
image: axllent/mailpit:latest
restart: unless-stopped
ports:
- "8025:8025"
- "1025:1025"
environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
volumes:
mysql_dev_data:
redis_dev_data: