-
Notifications
You must be signed in to change notification settings - Fork 250
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
40 lines (38 loc) · 1.06 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
40 lines (38 loc) · 1.06 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
services:
redis:
image: redis:7-alpine
container_name: videoeditor-redis-dev
restart: unless-stopped
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- redis_data_dev:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
postgres:
image: postgres:18
container_name: videoeditor-postgres-dev
restart: unless-stopped
environment:
POSTGRES_DB: videoeditor
POSTGRES_USER: videoeditor
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-videoeditor}
ports:
- "5432:5432"
volumes:
# Persist data across `docker compose down` so dev DBs survive restarts.
- postgres_data_dev:/var/lib/postgresql/data
# Auto-run migrations on first init only (postgres entrypoint convention).
- ./migrations:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U videoeditor -d videoeditor"]
interval: 5s
timeout: 3s
retries: 5
volumes:
postgres_data_dev:
redis_data_dev: