This commit is contained in:
leo 2024-08-08 05:56:48 +05:00
commit de6b60fa34
2 changed files with 33 additions and 0 deletions

8
README.md Normal file
View File

@ -0,0 +1,8 @@
### Pgadmin
*docker configuration*
Start: `sudo docker start pgadmin`
Start `sudo docker compose -f /data/pgadmin/docker-compose.yml up -d`
Stop: `sudo docker stop pgadmin`

25
docker-compose.yml Normal file
View File

@ -0,0 +1,25 @@
services:
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:8.9
restart: always
networks:
- proxynet
env_file:
- /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env
environment:
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
PGADMIN_DEFAULT_EMAIL: ${ADMIN_EMAIL}
labels:
- "traefik.enable=true"
- "traefik.http.routers.pgadmin.rule=Host(`pgadmin.${SERVER_DOMAIN}`)"
- "traefik.http.routers.pgadmin.middlewares=pgadmin-auth"
- "traefik.http.middlewares.pgadmin-auth.basicauth.usersfile=/httpauth/usersfile.htpasswd"
volumes:
- /data/secrets/${SERVER_DOMAIN}/httpauth:/httpauth
- /data/appdata/pgadmin:/var/lib/pgadmin
networks:
proxynet:
external: true