Advertisement
GeorgiLukanov87

postgres+pgadmin yaml

Apr 9th, 2024
947
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.54 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4.   postgres:
  5.     image: postgres:13
  6.     ports:
  7.      - "5432:5432"
  8.     environment:
  9.       POSTGRES_USER: postgres
  10.       POSTGRES_PASSWORD: postgres
  11.       POSTGRES_DB: postgres
  12.     volumes:
  13.      - postgres-data:/var/lib/postresql/data
  14.  
  15.   pgadmin:
  16.     image: dpage/pgadmin4
  17.     environment:
  18.       PGADMIN_DEFAULT_EMAIL: admin@admin.com
  19.       PGADMIN_DEFAULT_PASSWORD: password
  20.       PGADMIN_LISTEN_PORT: 8001
  21.     ports:
  22.      - "8001:8001"
  23.     depends_on:
  24.      - postgres
  25.  
  26. volumes:
  27.  postgres-data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement