-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
47 lines (42 loc) · 1.02 KB
/
docker-compose.dev.yml
File metadata and controls
47 lines (42 loc) · 1.02 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
version: "3.8"
# Development environment - run with: docker-compose -f docker-compose.dev.yml up
services:
# PostgreSQL
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: benchmark
POSTGRES_PASSWORD: benchmark123
POSTGRES_DB: benchmark
ports:
- "5432:5432"
volumes:
- postgres_data_dev:/var/lib/postgresql/data
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U benchmark"]
interval: 5s
timeout: 5s
retries: 5
# Redis
redis:
image: redis:7-alpine
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- redis_data_dev:/data
# Docker Registry
registry:
image: registry:2
environment:
REGISTRY_STORAGE_DELETE_ENABLED: "true"
REGISTRY_HTTP_ADDR: 0.0.0.0:5000
ports:
- "5000:5000"
volumes:
- registry_data_dev:/var/lib/registry
volumes:
postgres_data_dev:
redis_data_dev:
registry_data_dev: