Advertisement
GeorgiLukanov87

postgres+pgadmin yaml

Apr 9th, 2024 (edited)
1,052
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.56 KB | None | 0 0
  1. #docker compose up -d
  2.  
  3. version: '3.8'
  4.  
  5. services:
  6.   postgres:
  7.     image: postgres:13
  8.     ports:
  9.      - "5432:5432"
  10.     environment:
  11.       POSTGRES_USER: postgres
  12.       POSTGRES_PASSWORD: postgres
  13.       POSTGRES_DB: postgres
  14.     volumes:
  15.      - postgres-data:/var/lib/postgresql/data
  16.  
  17.   pgadmin:
  18.     image: dpage/pgadmin4
  19.     environment:
  20.       PGADMIN_DEFAULT_EMAIL: [email protected]
  21.       PGADMIN_DEFAULT_PASSWORD: password
  22.       PGADMIN_LISTEN_PORT: 8000
  23.     ports:
  24.      - "8000:8000"
  25.     depends_on:
  26.      - postgres
  27.  
  28. volumes:
  29.  postgres-data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement