-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (32 loc) · 791 Bytes
/
docker-compose.yaml
File metadata and controls
35 lines (32 loc) · 791 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
version: "3.9"
services:
postgres:
container_name: ppostgres.postgres
image: "postgres:15-alpine"
restart: unless-stopped
expose:
- "5432"
ports:
- "127.0.0.1:8765:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: ubnfhf
POSTGRES_DB: my_db
volumes:
- "ppostgres.postgres.data:/var/lib/postgresql/data:rw"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 60s
retries: 5
start_period: 10s
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: miha@mial.ru
PGADMIN_DEFAULT_PASSWORD: ubnfhf
ports:
- "5050:80"
volumes:
ppostgres.postgres.data: {}