-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
63 lines (58 loc) · 1.22 KB
/
compose.dev.yml
File metadata and controls
63 lines (58 loc) · 1.22 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
58
59
60
61
62
63
services:
redis:
container_name: redis-dev
image: redis:alpine
ports:
- 6379:6379
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- redis_data:/data
networks:
- backend
postgres:
container_name: postgres-dev
image: postgres:15-alpine
restart: always
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 5s
timeout: 2s
retries: 20
volumes:
- postgres_data:/var/lib/postgresql/data
command: postgres -c listen_addresses='*'
logging:
options:
max-size: "10m"
max-file: "3"
networks:
- backend
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin-dev
restart: always
ports:
- "5050:80"
environment:
- PGADMIN_DEFAULT_EMAIL=example@gmail.com
- PGADMIN_DEFAULT_PASSWORD=root
depends_on:
- postgres
networks:
- backend
networks:
backend:
volumes:
postgres_data:
redis_data: