replace adminer with pgadmin

This commit is contained in:
m5r 2021-09-25 18:56:54 +08:00
parent e969b1b83e
commit 73e11d7a65

View File

@ -9,13 +9,17 @@ services:
env_file: ./.env #Here we are using the already existing .env file env_file: ./.env #Here we are using the already existing .env file
ports: ports:
- "5432:5432" - "5432:5432"
admin: pga:
image: adminer image: dpage/pgadmin4
restart: unless-stopped environment:
depends_on: PGADMIN_DEFAULT_EMAIL: root@localhost.localdomain
- db PGADMIN_DEFAULT_PASSWORD: secret
ports: PGADMIN_DISABLE_POSTFIX: "true"
- 8080:8080 PGADMIN_CONFIG_SERVER_MODE: "False"
network_mode: host
volumes:
- pgadmin:/var/lib/pgadmin
volumes: volumes:
data: data:
pgadmin: