forked from jonra1993/fastapi-alembic-sqlmodel-async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pgadmin.yml
32 lines (27 loc) · 888 Bytes
/
pgadmin.yml
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
version: '3.8'
services:
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:4.16
restart: always
volumes:
- ./pgadmin/servers.json:/pgadmin4/servers.json
- pgadmin_data:/var/lib/pgadmin:rw
ports:
- 15432:15432
env_file: ".env"
environment:
PGADMIN_CONFIG_SERVER_MODE: 0
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 0
# Default user for desktop mode (SERVER_MODE = False)
PGADMIN_DEFAULT_EMAIL: [email protected]
# Default password for desktop mode (SERVER_MODE = False)
PGADMIN_DEFAULT_PASSWORD: password
PGADMIN_LISTEN_ADDRESS: 0.0.0.0
PGADMIN_LISTEN_PORT: 15432
entrypoint:
- "/bin/sh"
- "-c"
- "/bin/echo '${DATABASE_HOST}:5432:*:${DATABASE_USER}:${DATABASE_PASSWORD}' > /tmp/pgpassfile && /entrypoint.sh"
volumes:
pgadmin_data: