-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 823 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 823 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
services:
postgres:
container_name: postgres
image: postgres:14.5
hostname: postgres
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "54321:5432"
environment:
- POSTGRES_DB=bank
- POSTGRES_PORT=5432
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
postgres-web:
depends_on:
- postgres
container_name: postgres_web
image: dpage/pgadmin4:latest
hostname: postgres-web
restart: unless-stopped
ports:
- "8080:80"
environment:
- PGADMIN_DEFAULT_PASSWORD=postgres
- PGADMIN_DEFAULT_EMAIL=postgres@postgres.com
- PGADMIN_CONFIG_SERVER_MODE=False
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
volumes:
postgres_data: