-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcompose.yml
More file actions
35 lines (32 loc) · 813 Bytes
/
compose.yml
File metadata and controls
35 lines (32 loc) · 813 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
services:
postgres:
image: postgres:alpine
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready --dbname=$${POSTGRES_DB} --username=$${POSTGRES_USER}'"]
interval: 3s
timeout: 30s
retries: 10
environment:
POSTGRES_DB: my_db
POSTGRES_USER: my_user
POSTGRES_PASSWORD: my_pass
# volumes:
# - postgres-data:/var/lib/postgresql/data
restart: unless-stopped
pgadmin4:
build: ./
image: dcagatay/pwless-pgadmin4:latest
depends_on:
postgres:
condition: service_healthy
ports:
- 15432:80
environment:
POSTGRES_USER: my_user
POSTGRES_PASSWORD: my_pass
# POSTGRES_HOST: "postgres"
# POSTGRES_PORT: "5432"
# POSTGRES_DB: "*"
restart: unless-stopped
# volumes:
# postgres-data: