-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (30 loc) · 858 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
version: "3.9"
services:
postgres:
image: postgres:16-alpine
container_name: github-inventory-postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: meddlin
POSTGRES_PASSWORD: jailbreak
POSTGRES_DB: github_inventory
volumes:
- ./postgres-data:/var/lib/postgresql/data # persistent data stored locally
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-meddlin} -d ${POSTGRES_DB:-github_inventory}"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
container_name: github-inventory-pgadmin
restart: always
ports:
- "8080:80"
environment:
PGADMIN_DEFAULT_EMAIL: drushing.dev@gmail.com
PGADMIN_DEFAULT_PASSWORD: jailbreak
volumes:
- ./pgadmin-data:/var/lib/pgadmin