-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
41 lines (38 loc) · 994 Bytes
/
docker-compose.dev.yaml
File metadata and controls
41 lines (38 loc) · 994 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
39
40
41
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-secret}
POSTGRES_DB: ${POSTGRES_DB:-devpulse}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d devpulse"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
ports:
- "5433:5432"
volumes:
- pg_data:/var/lib/postgresql/data
- ./docker/init:/docker-entrypoint-initdb.d
redis:
image: redis:7-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
mailpit:
image: axllent/mailpit:latest
ports:
- "1025:1025" # SMTP — point SMTP_HOST=localhost SMTP_PORT=1025
- "8025:8025" # Web UI — http://localhost:8025
volumes:
pg_data:
redis_data: